Skip to content

Commit 53ec3df

Browse files
committed
cp: allow needed mut for platforms other than unix
1 parent 7230a3a commit 53ec3df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/uu/cp/src/cp.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1744,6 +1744,7 @@ pub(crate) fn copy_attributes(
17441744
// do nothing, since every symbolic link has the same
17451745
// permissions.
17461746
if !dest.is_symlink() {
1747+
#[cfg_attr(not(unix), allow(unused_mut))]
17471748
let mut perms = source_metadata.permissions();
17481749
#[cfg(unix)]
17491750
{

0 commit comments

Comments
 (0)