Merge commit 'aa0d551351' into clippy-subtree-update
This commit is contained in:
parent
4891dd4627
commit
277c4e4baf
183 changed files with 2484 additions and 848 deletions
|
|
@ -360,3 +360,23 @@ fn issue12907() -> String {
|
|||
}
|
||||
|
||||
fn main() {}
|
||||
|
||||
fn a(x: Option<u8>) -> Option<u8> {
|
||||
match x {
|
||||
Some(_) => None,
|
||||
None => {
|
||||
#[expect(clippy::needless_return, reason = "Use early return for errors.")]
|
||||
return None;
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
fn b(x: Option<u8>) -> Option<u8> {
|
||||
match x {
|
||||
Some(_) => None,
|
||||
None => {
|
||||
#[expect(clippy::needless_return)]
|
||||
return None;
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue