Always put a space after impl in macro pretty-printing
… regardless of whether the next symbol is punctuation or not.
This commit is contained in:
parent
2e33bf23c9
commit
c90c88b083
@ -319,7 +319,7 @@ struct Foo {}
|
||||
"#,
|
||||
expect![[r#"
|
||||
Clone
|
||||
impl< >core::clone::Clone for Foo< >{}
|
||||
impl < >core::clone::Clone for Foo< >{}
|
||||
|
||||
"#]],
|
||||
);
|
||||
@ -337,7 +337,7 @@ struct Foo {}
|
||||
"#,
|
||||
expect![[r#"
|
||||
Copy
|
||||
impl< >core::marker::Copy for Foo< >{}
|
||||
impl < >core::marker::Copy for Foo< >{}
|
||||
|
||||
"#]],
|
||||
);
|
||||
@ -354,9 +354,9 @@ struct Foo {}
|
||||
"#,
|
||||
expect![[r#"
|
||||
Copy, Clone
|
||||
impl< >core::marker::Copy for Foo< >{}
|
||||
impl < >core::marker::Copy for Foo< >{}
|
||||
|
||||
impl< >core::clone::Clone for Foo< >{}
|
||||
impl < >core::clone::Clone for Foo< >{}
|
||||
|
||||
"#]],
|
||||
);
|
||||
|
@ -88,7 +88,7 @@ pub fn insert_ws_into(syn: SyntaxNode) -> SyntaxNode {
|
||||
LIFETIME_IDENT if is_next(|it| is_text(it), true) => {
|
||||
mods.push(do_ws(after, tok));
|
||||
}
|
||||
AS_KW | DYN_KW => {
|
||||
AS_KW | DYN_KW | IMPL_KW => {
|
||||
mods.push(do_ws(after, tok));
|
||||
}
|
||||
T![;] => {
|
||||
|
Loading…
Reference in New Issue
Block a user