From df85ee05e3e3fe9583161bf81b5e43fe78bde3da Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Fri, 29 Apr 2022 14:07:19 +0200 Subject: [PATCH] minor: Insert whitespace after const token when formatting macro expansions --- crates/ide_db/src/syntax_helpers/insert_whitespace_into_node.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ide_db/src/syntax_helpers/insert_whitespace_into_node.rs b/crates/ide_db/src/syntax_helpers/insert_whitespace_into_node.rs index 7f5563d9d09..e389eaf0478 100644 --- a/crates/ide_db/src/syntax_helpers/insert_whitespace_into_node.rs +++ b/crates/ide_db/src/syntax_helpers/insert_whitespace_into_node.rs @@ -88,7 +88,7 @@ pub fn insert_ws_into(syn: SyntaxNode) -> SyntaxNode { LIFETIME_IDENT if is_next(is_text, true) => { mods.push(do_ws(after, tok)); } - AS_KW | DYN_KW | IMPL_KW => { + AS_KW | DYN_KW | IMPL_KW | CONST_KW => { mods.push(do_ws(after, tok)); } T![;] => {