updated dep

work
Avril 4 years ago
parent dbd0e068f6
commit 70e832e159
Signed by: flanchan
GPG Key ID: 284488987C31F630

4
Cargo.lock generated

@ -617,9 +617,9 @@ checksum = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8"
[[package]]
name = "smallmap"
version = "1.1.5"
version = "1.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "97ce78b988fb0df3b438d106942c0c2438849ecf40e3418af55044f96d27514d"
checksum = "c1a44d2e06ab7b0b0b5f1cac4ebb9326be5d62d2f370bf032e12a29a5baf5772"
dependencies = [
"rustc_version",
]

@ -25,7 +25,7 @@ chrono = "0.4.13"
color-eyre = "0.5.1"
lazy_static = "1.4.0"
futures = "0.3.6"
smallmap = "1.1.5"
smallmap = "^1.1.6"
[build-dependencies]
rustc_version = "0.2"

@ -39,8 +39,6 @@ impl fmt::Display for Error
}
}
/// Contains Videl information for a database directory
#[derive(Debug, Clone, PartialEq, Ord, Eq, PartialOrd, Hash)]
pub struct Database
@ -50,6 +48,13 @@ pub struct Database
impl Database
{
/// Create a new database for this path
pub fn new(path: PathBuf) -> Self
{
Self {
path,
}
}
/// Save this database to a stream
pub async fn save<T: AsyncWrite + Unpin + ?Sized>(&self, stream: &mut T) -> Result<usize, Error>
{

@ -19,7 +19,7 @@ fn compute_hash_single<T: Hash>(value: &T) -> u64
hasher.finish()
}
/// De-duplicating iterator
/// De-duplicating iterator with low hashing precision (64 bits)
#[derive(Debug, Clone)]
pub struct DedupIter<I, T>
where T: Hash,

@ -67,7 +67,7 @@ pub enum ResolutionError
Name,
Utf8,
#[cfg(feature="fast-pathnames")]
Base64Decode(base64::Error),
Base64Decode(base64::DecodeError),
IO(io::Error),
Open(io::Error),
Database(database::Error),

Loading…
Cancel
Save