Skip to content

Commit 6d32561

Browse files
committed
f Drop superfluous clone
1 parent 54d1337 commit 6d32561

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning-persister/src/fs_store.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ impl KVStore for FilesystemStore {
8282
let _guard = inner_lock_ref.read().unwrap();
8383

8484
let mut buf = Vec::with_capacity(DEFAULT_BUF_SIZE);
85-
let mut f = fs::File::open(dest_file_path.clone())?;
85+
let mut f = fs::File::open(dest_file_path)?;
8686
let nread = f.read_to_end(&mut buf)?;
8787
debug_assert_ne!(nread, 0);
8888

0 commit comments

Comments
 (0)