Skip to content

Commit 1a04686

Browse files
committed
Avoid triggering match_wildcard_for_single_variants
1 parent 7ff7119 commit 1a04686

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_dev/src/new_lint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ trait Context {
1818
impl<T> Context for io::Result<T> {
1919
fn context<C: AsRef<str>>(self, text: C) -> Self {
2020
match self {
21+
Ok(t) => Ok(t),
2122
Err(e) => {
2223
let message = format!("{}: {}", text.as_ref(), e);
2324
Err(io::Error::new(ErrorKind::Other, message))
2425
},
25-
ok => ok,
2626
}
2727
}
2828
}

0 commit comments

Comments
 (0)