From 26aab6a77cabeadd697acc61197064d4658df018 Mon Sep 17 00:00:00 2001 From: mtkennerly Date: Thu, 25 Jul 2024 21:19:43 -0400 Subject: [PATCH] Fix lints for Rust 1.80.0 --- clippy.toml | 1 + src/path.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 clippy.toml diff --git a/clippy.toml b/clippy.toml new file mode 100644 index 0000000..494593d --- /dev/null +++ b/clippy.toml @@ -0,0 +1 @@ +ignore-interior-mutability = ["..", "ludusavi::path::StrictPath"] diff --git a/src/path.rs b/src/path.rs index 086a674..087a398 100644 --- a/src/path.rs +++ b/src/path.rs @@ -764,7 +764,7 @@ impl StrictPath { .filter_map(crate::prelude::filter_map_walkdir) .filter(|x| x.file_type().is_file()) { - let file = &mut entry.path().display().to_string(); + let file = entry.path().display().to_string(); let mut perms = std::fs::metadata(&file)?.permissions(); if perms.readonly() { #[allow(clippy::permissions_set_readonly_false)]