Skip to content

Commit d5bdf7b

Browse files
committed
style: Make clippy happy
1 parent 4858032 commit d5bdf7b

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

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)