summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-11-09 08:57:09 +0200
committerLars Wirzenius <liw@liw.fi>2020-11-09 08:57:09 +0200
commit9bb449d22750887d2e0f427e8d75ddb3fde9603b (patch)
tree76ef9cade73dba2a7ed52f1787c081ebed281563 /src
parent374d19b74d99b9cd9d2a39f80b1cd8fb5e799860 (diff)
downloadobnam2-9bb449d22750887d2e0f427e8d75ddb3fde9603b.tar.gz
fix: minor fixes found by clippy
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<()> {