diff --git a/src/uu/tar/tests/test_errors.rs b/src/uu/tar/tests/test_errors.rs index 98b7acb..8bb41a0 100644 --- a/src/uu/tar/tests/test_errors.rs +++ b/src/uu/tar/tests/test_errors.rs @@ -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]