diff --git a/Cargo.toml b/Cargo.toml index 3bcc141..4d860ef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,11 +1,11 @@ [workspace] -resolver = "2" +resolver = "3" [workspace.package] repository = "https://github.com/assert-rs/dir-diff.git" license = "MIT OR Apache-2.0" -edition = "2021" -rust-version = "1.69" # MSRV +edition = "2024" +rust-version = "1.85" # MSRV include = [ "build.rs", "src/**/*", diff --git a/src/lib.rs b/src/lib.rs index bbbcffb..55998f6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -112,13 +112,8 @@ mod tests { #[test] fn test_display() { - use std::io::ErrorKind; - assert_eq!( - format!( - "{}", - Error::Io(std::io::Error::new(ErrorKind::Other, "oh no!")) - ), + format!("{}", Error::Io(std::io::Error::other("oh no!"))), "I/O error: oh no!" ); }