Skip to content

Commit bdf2333

Browse files
committed
fixup! uutests: Fix clippy warnings
1 parent a0b2adb commit bdf2333

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/uutests/src/lib/util.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1932,13 +1932,13 @@ impl UCommand {
19321932
fn list_directory_contents(path: &Path, prefix: &str) {
19331933
if let Ok(entries) = fs::read_dir(path) {
19341934
for entry in entries.flatten() {
1935-
// Recursively list contents if it's a directory
1936-
if entry.path().is_dir() {
1937-
Self::list_directory_contents(&entry.path(), &format!("{} ", prefix));
1938-
} else {
1939-
let path_str = entry.path().to_string_lossy().to_string();
1940-
log_info(format!("{}File:", prefix), &path_str);
1941-
}
1935+
// Recursively list contents if it's a directory
1936+
if entry.path().is_dir() {
1937+
Self::list_directory_contents(&entry.path(), &format!("{} ", prefix));
1938+
} else {
1939+
let path_str = entry.path().to_string_lossy().to_string();
1940+
log_info(format!("{}File:", prefix), &path_str);
1941+
}
19421942
}
19431943
}
19441944
}

0 commit comments

Comments
 (0)