Skip to content

Commit 2ecbd84

Browse files
committed
f Simplify entries
1 parent 770e810 commit 2ecbd84

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lightning-persister/src/fs_store.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,7 @@ impl MigratableKVStore for FilesystemStore {
429429
let mut keys = Vec::new();
430430

431431
'primary_loop: for primary_entry in fs::read_dir(prefixed_dest)? {
432-
let primary_entry = primary_entry?;
433-
let primary_path = primary_entry.path();
432+
let primary_path = primary_entry?.path();
434433

435434
if dir_entry_is_key(&primary_path)? {
436435
let primary_namespace = String::new();
@@ -442,8 +441,7 @@ impl MigratableKVStore for FilesystemStore {
442441

443442
// The primary_entry is actually also a directory.
444443
'secondary_loop: for secondary_entry in fs::read_dir(&primary_path)? {
445-
let secondary_entry = secondary_entry?;
446-
let secondary_path = secondary_entry.path();
444+
let secondary_path = secondary_entry?.path();
447445

448446
if dir_entry_is_key(&secondary_path)? {
449447
let primary_namespace = get_key_from_dir_entry(&primary_path, prefixed_dest)?;

0 commit comments

Comments
 (0)