Skip to content

Commit 0d8a298

Browse files
committed
Make Clippy happy
1 parent 61c7e7e commit 0d8a298

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cast_checks/tests/basic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,5 @@ fn unused_parens(use_parens: bool) -> i64 {
8989
#[cast_checks::enable]
9090
fn boxed_trait_object() -> Box<dyn std::error::Error> {
9191
let error = String::new();
92-
Box::new(std::io::Error::new(std::io::ErrorKind::Other, error)) as Box<dyn std::error::Error>
92+
Box::new(std::io::Error::other(error)) as Box<dyn std::error::Error>
9393
}

0 commit comments

Comments
 (0)