mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
fix: simplify boolean test to a single negation
This commit is contained in:
parent
d7fdf141a4
commit
5411836767
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ use super::*;
|
||||||
// struct S;
|
// struct S;
|
||||||
pub(super) fn mod_contents(p: &mut Parser<'_>, stop_on_r_curly: bool) {
|
pub(super) fn mod_contents(p: &mut Parser<'_>, stop_on_r_curly: bool) {
|
||||||
attributes::inner_attrs(p);
|
attributes::inner_attrs(p);
|
||||||
while !p.at(EOF) && !(p.at(T!['}']) && stop_on_r_curly) {
|
while !(p.at(EOF) || (p.at(T!['}']) && stop_on_r_curly)) {
|
||||||
item_or_macro(p, stop_on_r_curly);
|
item_or_macro(p, stop_on_r_curly);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue