Eliminates a pointless is_empty test.
This commit is contained in:
parent
b16cfacbcc
commit
fae29e497c
@ -771,7 +771,7 @@ fn expand_stmt(stmt: P<Stmt>, fld: &mut MacroExpander) -> SmallVector<P<Stmt>> {
|
||||
|
||||
// If this is a macro invocation with a semicolon, then apply that
|
||||
// semicolon to the final statement produced by expansion.
|
||||
if style == MacStmtWithSemicolon && !fully_expanded.is_empty() {
|
||||
if style == MacStmtWithSemicolon {
|
||||
match fully_expanded.pop() {
|
||||
Some(stmt) => {
|
||||
let new_stmt = stmt.map(|Spanned {node, span}| {
|
||||
|
Loading…
x
Reference in New Issue
Block a user