Add whitespace b/w lifetime and mut in expansion

This commit is contained in:
nathan.whitaker 2021-10-01 15:29:26 -04:00
parent 6b10decb20
commit a3661b3900

View File

@ -159,7 +159,7 @@ fn insert_whitespaces(syn: SyntaxNode) -> String {
res.push_str("}\n"); res.push_str("}\n");
res.extend(iter::repeat(" ").take(2 * indent)); res.extend(iter::repeat(" ").take(2 * indent));
} }
LIFETIME_IDENT if is_next(|it| it == IDENT, true) => { LIFETIME_IDENT if is_next(|it| it == IDENT || it == MUT_KW, true) => {
res.push_str(token.text()); res.push_str(token.text());
res.push(' '); res.push(' ');
} }