Skip to content

Commit 2c557b0

Browse files
committed
Clippy lints for list_dir
1 parent 85d32e6 commit 2c557b0

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

examples/list_dir.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,11 @@ fn list_dir(
7676
""
7777
}
7878
);
79-
if entry.attributes.is_directory() {
80-
if entry.name != embedded_sdmmc::ShortFileName::parent_dir()
81-
&& entry.name != embedded_sdmmc::ShortFileName::this_dir()
82-
{
83-
children.push(entry.name.clone());
84-
}
79+
if entry.attributes.is_directory()
80+
&& entry.name != embedded_sdmmc::ShortFileName::parent_dir()
81+
&& entry.name != embedded_sdmmc::ShortFileName::this_dir()
82+
{
83+
children.push(entry.name.clone());
8584
}
8685
})?;
8786
for child_name in children {

0 commit comments

Comments
 (0)