Skip to content

Commit 7a706b5

Browse files
cakebakerQelxiros
andcommitted
mv: fix warning from io_other_error lint
Co-authored-by: Jeremy Smart <jeremy3141592@gmail.com>
1 parent 4d44afc commit 7a706b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uu/mv/src/mv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ fn rename_dir_fallback(
826826
io::ErrorKind::PermissionDenied,
827827
"Permission denied",
828828
)),
829-
_ => Err(io::Error::new(io::ErrorKind::Other, format!("{err:?}"))),
829+
_ => Err(io::Error::other(format!("{err:?}"))),
830830
},
831831
_ => Ok(()),
832832
}

0 commit comments

Comments
 (0)