Fix clippy lints

This commit is contained in:
Nadja Reitzenstein 2021-09-19 18:17:42 +02:00
parent b033b6dc07
commit abc9126137
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ use walkdir::{WalkDir, DirEntry};
fn is_hidden(entry: &DirEntry) -> bool {
entry.file_name()
.to_str()
.map(|s| s.starts_with("."))
.map(|s| s.starts_with('.'))
.unwrap_or(false)
}

View File

@ -1,5 +1,5 @@
// FIXME: No.
#[allow(dead_code)]
#![allow(dead_code)]
#[macro_use]
extern crate slog;