We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
clone
1 parent 54d1337 commit 6d32561Copy full SHA for 6d32561
lightning-persister/src/fs_store.rs
@@ -82,7 +82,7 @@ impl KVStore for FilesystemStore {
82
let _guard = inner_lock_ref.read().unwrap();
83
84
let mut buf = Vec::with_capacity(DEFAULT_BUF_SIZE);
85
- let mut f = fs::File::open(dest_file_path.clone())?;
+ let mut f = fs::File::open(dest_file_path)?;
86
let nread = f.read_to_end(&mut buf)?;
87
debug_assert_ne!(nread, 0);
88
0 commit comments