From abc9126137cb1075805c405edacb3c00141aab35 Mon Sep 17 00:00:00 2001 From: Nadja Reitzenstein Date: Sun, 19 Sep 2021 18:17:42 +0200 Subject: [PATCH] Fix clippy lints --- build.rs | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.rs b/build.rs index 603ed95..a353525 100644 --- a/build.rs +++ b/build.rs @@ -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) } diff --git a/src/main.rs b/src/main.rs index 9366742..71c0e68 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,5 @@ // FIXME: No. -#[allow(dead_code)] +#![allow(dead_code)] #[macro_use] extern crate slog;