fix: simplify boolean test to a single negation
This commit is contained in:
parent
d7fdf141a4
commit
5411836767
@ -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…
x
Reference in New Issue
Block a user