mirror of
https://github.com/uutils/tar.git
synced 2026-06-10 16:14:35 -07:00
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:
committed by
Daniel Hofstetter
parent
3ea2f51c91
commit
d281a396af
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user