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
1 changed files with 1 additions and 1 deletions
|
@ -301,7 +301,7 @@ where
|
||||||
.emit();
|
.emit();
|
||||||
};
|
};
|
||||||
match issue.parse() {
|
match issue.parse() {
|
||||||
Ok(num) if num == 0 => {
|
Ok(0) => {
|
||||||
emit_diag(
|
emit_diag(
|
||||||
"`issue` must not be \"0\", \
|
"`issue` must not be \"0\", \
|
||||||
use \"none\" instead",
|
use \"none\" instead",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue