clippy: fix io_other_error lint

https://rust-lang.github.io/rust-clippy/rust-1.94.0/index.html#io_other_error
This commit is contained in:
xtqqczze
2026-04-11 14:45:36 +01:00
committed by Daniel Hofstetter
parent 3ea2f51c91
commit d281a396af
+1 -4
View File
@@ -44,10 +44,7 @@ fn test_tar_error_code() {
.code(),
2
);
assert_eq!(
TarError::Io(io::Error::new(io::ErrorKind::Other, "test")).code(),
2
);
assert_eq!(TarError::Io(io::Error::other("test")).code(), 2);
}
#[test]