Skip to content

Commit cb3ea12

Browse files
authored
Merge pull request #70 from epage/edition
chore: Migrate to Edition 2024
2 parents d977608 + 5906731 commit cb3ea12

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[workspace]
2-
resolver = "2"
2+
resolver = "3"
33

44
[workspace.package]
55
repository = "https://github.com/assert-rs/dir-diff.git"
66
license = "MIT OR Apache-2.0"
7-
edition = "2021"
8-
rust-version = "1.69" # MSRV
7+
edition = "2024"
8+
rust-version = "1.85" # MSRV
99
include = [
1010
"build.rs",
1111
"src/**/*",

src/lib.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,8 @@ mod tests {
112112

113113
#[test]
114114
fn test_display() {
115-
use std::io::ErrorKind;
116-
117115
assert_eq!(
118-
format!(
119-
"{}",
120-
Error::Io(std::io::Error::new(ErrorKind::Other, "oh no!"))
121-
),
116+
format!("{}", Error::Io(std::io::Error::other("oh no!"))),
122117
"I/O error: oh no!"
123118
);
124119
}

0 commit comments

Comments
 (0)