diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-03-27 11:18:32 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-03-27 11:18:32 +0200 |
commit | d27911513b1b6fc4d48d4a8f316e780b765f6c7a (patch) | |
tree | 6179c54a9d3089dc0a8d68d83a413f7740a8d3da /src/index.rs | |
parent | 3592fb5dff0384ed82c5146059caa6840263ebbe (diff) | |
download | obnam2-d27911513b1b6fc4d48d4a8f316e780b765f6c7a.tar.gz |
refactor: drop unnecessary clones
Diffstat (limited to 'src/index.rs')
-rw-r--r-- | src/index.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index.rs b/src/index.rs index 6628b50..83f854c 100644 --- a/src/index.rs +++ b/src/index.rs @@ -138,7 +138,7 @@ mod test { let meta = ChunkMeta::new_generation("abc", "timestamp"); let dir = tempdir().unwrap(); let mut idx = new_index(dir.path()); - idx.insert_meta(id.clone(), meta.clone()).unwrap(); + idx.insert_meta(id.clone(), meta).unwrap(); assert_eq!(idx.find_generations().unwrap(), vec![id]); } @@ -148,7 +148,7 @@ mod test { let meta = ChunkMeta::new_generation("abc", "timestamp"); let dir = tempdir().unwrap(); let mut idx = new_index(dir.path()); - idx.insert_meta(id.clone(), meta.clone()).unwrap(); + idx.insert_meta(id.clone(), meta).unwrap(); idx.remove_meta(&id).unwrap(); assert_eq!(idx.find_generations().unwrap(), vec![]); } |