Skip to content

Commit 7d6fe1a

Browse files
authored
Merge pull request #3292 from dylanahsmith/fix-RUSTUP_PERMIT_COPY_RENAME
Fix RUSTUP_PERMIT_COPY_RENAME condition so it is actually used
2 parents f78aa86 + a9589c7 commit 7d6fe1a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/utils/utils.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -622,9 +622,8 @@ where
622622
OperationResult::Retry(e)
623623
}
624624
#[cfg(target_os = "linux")]
625-
io::ErrorKind::Other
626-
if process().var_os("RUSTUP_PERMIT_COPY_RENAME").is_some()
627-
&& Some(EXDEV) == e.raw_os_error() =>
625+
_ if process().var_os("RUSTUP_PERMIT_COPY_RENAME").is_some()
626+
&& Some(EXDEV) == e.raw_os_error() =>
628627
{
629628
match copy_and_delete(name, src, dest, notify_handler) {
630629
Ok(()) => OperationResult::Ok(()),

0 commit comments

Comments
 (0)