examples: clippy
This commit is contained in:
1 parent
4954079212
commit
901bd5b0cd
3 files changed
+4
-4
No files matched your search
@@ -28,7 +28,7 @@ fn app(cx: Scope) -> Element {
|
||||
}
|
||||
main {
|
||||
files.read().path_names.iter().enumerate().map(|(dir_id, path)| {
|
||||
let path_end = path.split('/').last().unwrap_or_else(|| path.as_str());
|
||||
let path_end = path.split('/').last().unwrap_or(path.as_str());
|
||||
let icon_type = if path_end.contains('.') {
|
||||
"description"
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user