Skip to content

Commit

Permalink
Fix lints for Rust 1.80.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkennerly committed Jul 26, 2024
1 parent 02e0ba9 commit 26aab6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions clippy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ignore-interior-mutability = ["..", "ludusavi::path::StrictPath"]
2 changes: 1 addition & 1 deletion src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 26aab6a

Please sign in to comment.