diff --git a/pbs-datastore/src/cached_chunk_reader.rs b/pbs-datastore/src/cached_chunk_reader.rs index 27c68584..cdb42bb9 100644 --- a/pbs-datastore/src/cached_chunk_reader.rs +++ b/pbs-datastore/src/cached_chunk_reader.rs @@ -121,6 +121,7 @@ pub struct SeekableCachedChunkReader< reader: Arc>, index_bytes: u64, position: u64, + #[allow(clippy::type_complexity)] read_future: Option, usize), Error>> + Send>>>, } diff --git a/pbs-datastore/src/catalog.rs b/pbs-datastore/src/catalog.rs index f1224041..45f90bf9 100644 --- a/pbs-datastore/src/catalog.rs +++ b/pbs-datastore/src/catalog.rs @@ -31,7 +31,7 @@ pub trait BackupCatalogWriter { } #[repr(u8)] -#[derive(Copy, Clone, PartialEq)] +#[derive(Copy, Clone, PartialEq, Eq)] pub enum CatalogEntryType { Directory = b'd', File = b'f', @@ -86,14 +86,14 @@ impl fmt::Display for CatalogEntryType { /// /// The ``attr`` property contain the exact type with type specific /// attributes. -#[derive(Clone, PartialEq)] +#[derive(Clone, PartialEq, Eq)] pub struct DirEntry { pub name: Vec, pub attr: DirEntryAttribute, } /// Used to specific additional attributes inside DirEntry -#[derive(Clone, Debug, PartialEq)] +#[derive(Clone, Debug, PartialEq, Eq)] pub enum DirEntryAttribute { Directory { start: u64 }, File { size: u64, mtime: i64 }, diff --git a/pbs-datastore/src/manifest.rs b/pbs-datastore/src/manifest.rs index bd3b2ae3..7b414c8a 100644 --- a/pbs-datastore/src/manifest.rs +++ b/pbs-datastore/src/manifest.rs @@ -57,7 +57,7 @@ pub struct BackupManifest { pub signature: Option, } -#[derive(PartialEq)] +#[derive(PartialEq, Eq)] pub enum ArchiveType { FixedIndex, DynamicIndex, diff --git a/pbs-datastore/src/snapshot_reader.rs b/pbs-datastore/src/snapshot_reader.rs index 5cc50881..899c3bce 100644 --- a/pbs-datastore/src/snapshot_reader.rs +++ b/pbs-datastore/src/snapshot_reader.rs @@ -121,6 +121,7 @@ pub struct SnapshotChunkIterator<'a, F: Fn(&[u8; 32]) -> bool> { snapshot_reader: &'a SnapshotReader, todo_list: Vec, skip_fn: F, + #[allow(clippy::type_complexity)] current_index: Option<(Arc>, usize, Vec<(usize, u64)>)>, }