about summary refs log tree commit diff
diff options
context:
space:
mode:
authornathan.whitaker <nathan.whitaker01@gmail.com>2021-10-01 15:29:26 -0400
committernathan.whitaker <nathan.whitaker01@gmail.com>2021-10-01 15:29:26 -0400
commita3661b3900a393b45004a7877d355ef6c7654b25 (patch)
tree8d538b742385398e78051a011fcfb43d39b555f3
parent6b10decb209ca753bb1e623b94ded0e0ff79892f (diff)
downloadrust-a3661b3900a393b45004a7877d355ef6c7654b25.tar.gz
rust-a3661b3900a393b45004a7877d355ef6c7654b25.zip
Add whitespace b/w lifetime and mut in expansion
-rw-r--r--crates/ide/src/expand_macro.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide/src/expand_macro.rs b/crates/ide/src/expand_macro.rs
index 079f847030f..311a0c0b516 100644
--- a/crates/ide/src/expand_macro.rs
+++ b/crates/ide/src/expand_macro.rs
@@ -159,7 +159,7 @@ fn insert_whitespaces(syn: SyntaxNode) -> String {
                 res.push_str("}\n");
                 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(' ');
             }