Don't use an if guard to check equality with a constant
Match on it directly instead
This commit is contained in:
parent
e0bc267512
commit
c07890543d
@ -301,7 +301,7 @@ fn find_stability_generic<'a, I>(
|
||||
.emit();
|
||||
};
|
||||
match issue.parse() {
|
||||
Ok(num) if num == 0 => {
|
||||
Ok(0) => {
|
||||
emit_diag(
|
||||
"`issue` must not be \"0\", \
|
||||
use \"none\" instead",
|
||||
|
Loading…
Reference in New Issue
Block a user