File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1668,11 +1668,6 @@ Executed at: {executed_at}"#,
1668
1668
1669
1669
if let Err ( e) = fs:: remove_file ( dst) {
1670
1670
if cfg ! ( windows) && e. kind ( ) != io:: ErrorKind :: NotFound {
1671
- // workaround for https://github.com/rust-lang/rust/issues/127126
1672
- // if removing the file fails, attempt to rename it instead.
1673
- let now = t ! ( SystemTime :: now( ) . duration_since( SystemTime :: UNIX_EPOCH ) ) ;
1674
- let _ = fs:: rename ( dst, format ! ( "{}-{}" , dst. display( ) , now. as_nanos( ) ) ) ;
1675
-
1676
1671
#[ cfg( windows) ]
1677
1672
{
1678
1673
eprintln ! (
@@ -1727,6 +1722,11 @@ Executed at: {executed_at}"#,
1727
1722
}
1728
1723
}
1729
1724
}
1725
+
1726
+ // workaround for https://github.com/rust-lang/rust/issues/127126
1727
+ // if removing the file fails, attempt to rename it instead.
1728
+ let now = t ! ( SystemTime :: now( ) . duration_since( SystemTime :: UNIX_EPOCH ) ) ;
1729
+ let _ = fs:: rename ( dst, format ! ( "{}-{}" , dst. display( ) , now. as_nanos( ) ) ) ;
1730
1730
}
1731
1731
}
1732
1732
let metadata = t ! ( src. symlink_metadata( ) , format!( "src = {}" , src. display( ) ) ) ;
You can’t perform that action at this time.
0 commit comments