Add space after lifetime

In macro expansion, this lead to invalid syntax
This commit is contained in:
Emmanuel Thompson 2021-04-06 23:22:44 -04:00
parent cf41e1410a
commit 35bec31bca

View File

@ -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(),