mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
ide: insert whitespace between 'mut' and 'self' in macro expansion
This commit is contained in:
parent
1ff5b2cab4
commit
4efc2a9df2
@ -88,6 +88,9 @@ pub fn insert_ws_into(syn: SyntaxNode) -> SyntaxNode {
|
||||
LIFETIME_IDENT if is_next(is_text, true) => {
|
||||
mods.push(do_ws(after, tok));
|
||||
}
|
||||
MUT_KW if is_next(|it| it == SELF_KW, false) => {
|
||||
mods.push(do_ws(after, tok));
|
||||
}
|
||||
AS_KW | DYN_KW | IMPL_KW | CONST_KW => {
|
||||
mods.push(do_ws(after, tok));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user