Skip to content

Commit b8f4667

Browse files
committed
Always put a space after dyn in macro pretty-printing
… regardless of whether the next symbol is punctuation or not. Fixes issue 11100.
1 parent f5b789b commit b8f4667

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ide_db/src/helpers/insert_whitespace_into_node.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ pub fn insert_ws_into(syn: SyntaxNode) -> SyntaxNode {
8888
LIFETIME_IDENT if is_next(|it| is_text(it), true) => {
8989
mods.push(do_ws(after, tok));
9090
}
91-
AS_KW => {
91+
AS_KW | DYN_KW => {
9292
mods.push(do_ws(after, tok));
9393
}
9494
T![;] => {

0 commit comments

Comments
 (0)