summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fsentry.rs1
-rw-r--r--src/generation.rs2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/fsentry.rs b/src/fsentry.rs
index 2a5b153..97274ed 100644
--- a/src/fsentry.rs
+++ b/src/fsentry.rs
@@ -16,6 +16,7 @@ pub struct FilesystemEntry {
len: u64,
}
+#[allow(clippy::len_without_is_empty)]
impl FilesystemEntry {
fn new(kind: FilesystemKind, path: &Path, len: u64) -> Self {
Self {
diff --git a/src/generation.rs b/src/generation.rs
index 2cae478..ca1f8d5 100644
--- a/src/generation.rs
+++ b/src/generation.rs
@@ -38,7 +38,7 @@ impl Generation {
Ok(())
}
- pub fn insert_iter<'a>(
+ pub fn insert_iter(
&mut self,
entries: impl Iterator<Item = anyhow::Result<(FilesystemEntry, Vec<ChunkId>)>>,
) -> anyhow::Result<()> {