examples: clippy

This commit is contained in:
Jonathan Kelley committed 2022-02-28 02:38:17 -05:00
1 parent 4954079212
commit 901bd5b0cd
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -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 {