-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
A-lintArea: New lintsArea: New lintsE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.Call for participation: Medium difficulty level problem and requires some initial experience.T-ASTType: Requires working with the ASTType: Requires working with the AST
Description
We should have a lint that suggest to change
match foo {
Ok(row) => match row {
Some(pixels) => pixels,
None => return Err(…),
},
Err(err) => return Err(…),
};
into
match foo {
Ok(Some(pixels)) => pixels,
Ok(None) => return Err(…),
Err(...) => return Err(…),
}
Copied from https://github.com/Manishearth/rust-clippy/issues/1245#issuecomment-250666810.
Techcable
Metadata
Metadata
Assignees
Labels
A-lintArea: New lintsArea: New lintsE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.Call for participation: Medium difficulty level problem and requires some initial experience.T-ASTType: Requires working with the ASTType: Requires working with the AST