diff options
Diffstat (limited to 'crates/syntax')
-rw-r--r-- | crates/syntax/src/display.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/syntax/src/display.rs b/crates/syntax/src/display.rs index 391647fc6..cd956d950 100644 --- a/crates/syntax/src/display.rs +++ b/crates/syntax/src/display.rs | |||
@@ -80,7 +80,7 @@ pub fn macro_label(node: &ast::Macro) -> String { | |||
80 | let name = node.name().map(|name| name.syntax().text().to_string()).unwrap_or_default(); | 80 | let name = node.name().map(|name| name.syntax().text().to_string()).unwrap_or_default(); |
81 | match node { | 81 | match node { |
82 | ast::Macro::MacroRules(node) => { | 82 | ast::Macro::MacroRules(node) => { |
83 | let vis = if node.has_atom_attr("macro_export") { "#[macro_export]\n" } else { "" }; | 83 | let vis = if node.has_atom_attr("macro_export") { "#[macro_export] " } else { "" }; |
84 | format!("{}macro_rules! {}", vis, name) | 84 | format!("{}macro_rules! {}", vis, name) |
85 | } | 85 | } |
86 | ast::Macro::MacroDef(node) => { | 86 | ast::Macro::MacroDef(node) => { |