Skip to content

Commit a3661b3

Browse files
committed
Add whitespace b/w lifetime and mut in expansion
1 parent 6b10dec commit a3661b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ide/src/expand_macro.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ fn insert_whitespaces(syn: SyntaxNode) -> String {
159159
res.push_str("}\n");
160160
res.extend(iter::repeat(" ").take(2 * indent));
161161
}
162-
LIFETIME_IDENT if is_next(|it| it == IDENT, true) => {
162+
LIFETIME_IDENT if is_next(|it| it == IDENT || it == MUT_KW, true) => {
163163
res.push_str(token.text());
164164
res.push(' ');
165165
}

0 commit comments

Comments
 (0)