rustfmt
parent
6aa804584d
commit
f20928ddfe
|
@ -29,8 +29,4 @@ table! {
|
|||
}
|
||||
}
|
||||
|
||||
allow_tables_to_appear_in_same_query!(
|
||||
data,
|
||||
files,
|
||||
meta,
|
||||
);
|
||||
allow_tables_to_appear_in_same_query!(data, files, meta,);
|
||||
|
|
|
@ -1,23 +1,19 @@
|
|||
macro_rules! upend_insert_val {
|
||||
($db_connection:expr, $entity:expr, $attribute:expr, $value:expr) => {{
|
||||
$db_connection.insert_entry(
|
||||
Entry {
|
||||
entity: $entity.clone(),
|
||||
attribute: String::from($attribute),
|
||||
value: crate::database::entry::EntryValue::String(String::from($value)),
|
||||
},
|
||||
)
|
||||
$db_connection.insert_entry(Entry {
|
||||
entity: $entity.clone(),
|
||||
attribute: String::from($attribute),
|
||||
value: crate::database::entry::EntryValue::String(String::from($value)),
|
||||
})
|
||||
}};
|
||||
}
|
||||
|
||||
macro_rules! upend_insert_addr {
|
||||
($db_connection:expr, $entity:expr, $attribute:expr, $addr:expr) => {{
|
||||
$db_connection.insert_entry(
|
||||
Entry {
|
||||
entity: $entity.clone(),
|
||||
attribute: String::from($attribute),
|
||||
value: crate::database::entry::EntryValue::Address($addr.clone()),
|
||||
},
|
||||
)
|
||||
$db_connection.insert_entry(Entry {
|
||||
entity: $entity.clone(),
|
||||
attribute: String::from($attribute),
|
||||
value: crate::database::entry::EntryValue::Address($addr.clone()),
|
||||
})
|
||||
}};
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use diesel::{deserialize, sql_types};
|
|||
use filebuffer::FileBuffer;
|
||||
use log::trace;
|
||||
use serde::{ser, Serialize, Serializer};
|
||||
use std::path::{PathBuf, Path};
|
||||
use std::path::{Path, PathBuf};
|
||||
use tiny_keccak::{Hasher, KangarooTwelve};
|
||||
|
||||
#[derive(Debug, Clone, Eq, PartialEq, FromSqlRow, Hash)]
|
||||
|
|
Loading…
Reference in New Issue