mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Fix clippy::match_bool
This commit is contained in:
parent
07ebf5528e
commit
573a6bb5c9
1 changed files with 2 additions and 4 deletions
|
@ -87,10 +87,8 @@ pub(crate) fn pattern(p: &mut Parser) {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn stmt(p: &mut Parser, with_semi: bool) {
|
pub(crate) fn stmt(p: &mut Parser, with_semi: bool) {
|
||||||
let with_semi = match with_semi {
|
let with_semi =
|
||||||
true => expressions::StmtWithSemi::Yes,
|
if with_semi { expressions::StmtWithSemi::Yes } else { expressions::StmtWithSemi::No };
|
||||||
false => expressions::StmtWithSemi::No,
|
|
||||||
};
|
|
||||||
|
|
||||||
expressions::stmt(p, with_semi)
|
expressions::stmt(p, with_semi)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue