Skip to content

Commit

Permalink
Allow clippy::permissions_set_readonly_false warning
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Mar 10, 2023
1 parent 4cc0007 commit 639ee3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/build_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ impl BuildContext {
// fs::copy copies permissions as well, and the original
// file may have been read-only
let mut perms = fs::metadata(&dest_path)?.permissions();
#[allow(clippy::permissions_set_readonly_false)]
perms.set_readonly(false);
fs::set_permissions(&dest_path, perms)?;

Expand Down

0 comments on commit 639ee3e

Please sign in to comment.