Skip to content

Commit b420939

Browse files
Update crates/ide/src/expand_macro.rs
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
1 parent e6913be commit b420939

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/ide/src/expand_macro.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ pub(crate) fn expand_macro(db: &RootDatabase, position: FilePosition) -> Option<
4747
let mut tt = tt.syntax().children_with_tokens().skip(1).join("");
4848
tt.pop();
4949
let expansions = sema.expand_derive_macro(&attr)?;
50-
return Some(ExpandedMacro {
50+
Some(ExpandedMacro {
5151
name: tt,
5252
expansion: expansions.into_iter().map(insert_whitespaces).join(""),
53-
});
53+
})
5454
} else {
5555
None
5656
}

0 commit comments

Comments
 (0)