We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4858032 commit d5bdf7bCopy full SHA for d5bdf7b
1 file changed
src/lib.rs
@@ -112,13 +112,8 @@ mod tests {
112
113
#[test]
114
fn test_display() {
115
- use std::io::ErrorKind;
116
-
117
assert_eq!(
118
- format!(
119
- "{}",
120
- Error::Io(std::io::Error::new(ErrorKind::Other, "oh no!"))
121
- ),
+ format!("{}", Error::Io(std::io::Error::other("oh no!"))),
122
"I/O error: oh no!"
123
);
124
}
0 commit comments