We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61c7e7e commit 0d8a298Copy full SHA for 0d8a298
cast_checks/tests/basic.rs
@@ -89,5 +89,5 @@ fn unused_parens(use_parens: bool) -> i64 {
89
#[cast_checks::enable]
90
fn boxed_trait_object() -> Box<dyn std::error::Error> {
91
let error = String::new();
92
- Box::new(std::io::Error::new(std::io::ErrorKind::Other, error)) as Box<dyn std::error::Error>
+ Box::new(std::io::Error::other(error)) as Box<dyn std::error::Error>
93
}
0 commit comments