Skip to content

Commit 2df9af6

Browse files
committed
mv: use question_mark
1 parent 3034266 commit 2df9af6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/uu/mv/src/mv.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,8 @@ fn rename_fifo_fallback(from: &Path, to: &Path) -> io::Result<()> {
885885
if to.try_exists()? {
886886
fs::remove_file(to)?;
887887
}
888-
make_fifo(to).and_then(|_| fs::remove_file(from))
888+
make_fifo(to)?;
889+
fs::remove_file(from)
889890
}
890891

891892
#[cfg(not(unix))]

0 commit comments

Comments
 (0)