mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
mv: use question_mark
This commit is contained in:
committed by
Daniel Hofstetter
parent
c8813c8331
commit
0a0f222447
+2
-1
@@ -885,7 +885,8 @@ fn rename_fifo_fallback(from: &Path, to: &Path) -> io::Result<()> {
|
||||
if to.try_exists()? {
|
||||
fs::remove_file(to)?;
|
||||
}
|
||||
make_fifo(to).and_then(|_| fs::remove_file(from))
|
||||
make_fifo(to)?;
|
||||
fs::remove_file(from)
|
||||
}
|
||||
|
||||
#[cfg(not(unix))]
|
||||
|
||||
Reference in New Issue
Block a user