Add space after lifetime
In macro expansion, this lead to invalid syntax
This commit is contained in:
parent
cf41e1410a
commit
35bec31bca
@ -103,6 +103,9 @@ fn insert_whitespaces(syn: SyntaxNode) -> String {
|
||||
format!("\n{}}}", " ".repeat(indent))
|
||||
}
|
||||
R_CURLY => format!("}}\n{}", " ".repeat(indent)),
|
||||
LIFETIME_IDENT if is_next(|it| it == IDENT, true) => {
|
||||
format!("{} ", token.text().to_string())
|
||||
}
|
||||
T![;] => format!(";\n{}", " ".repeat(indent)),
|
||||
T![->] => " -> ".to_string(),
|
||||
T![=] => " = ".to_string(),
|
||||
|
Loading…
Reference in New Issue
Block a user