diff options
author | Edwin Cheng <[email protected]> | 2019-05-04 10:03:22 +0100 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2019-05-04 10:03:22 +0100 |
commit | 048f12d9f0bcd7357d9a885639928a90915577ab (patch) | |
tree | 886c926db144c5ffc136e19fc67bb1b4042c27d8 | |
parent | e7e896170a4cccefc5ac4744bb837329ae5d0d36 (diff) |
Use explict `escape_default` instead of dbg print
-rw-r--r-- | crates/ra_mbe/src/syntax_bridge.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_mbe/src/syntax_bridge.rs b/crates/ra_mbe/src/syntax_bridge.rs index 8b4098c4a..63ca54cc2 100644 --- a/crates/ra_mbe/src/syntax_bridge.rs +++ b/crates/ra_mbe/src/syntax_bridge.rs | |||
@@ -135,7 +135,7 @@ fn doc_comment_text(comment: &ast::Comment) -> SmolStr { | |||
135 | 135 | ||
136 | // Quote the string | 136 | // Quote the string |
137 | // Note that `tt::Literal` expect an escaped string | 137 | // Note that `tt::Literal` expect an escaped string |
138 | let text = format!("{:?}", text); | 138 | let text = format!("\"{}\"", text.escape_default()); |
139 | text.into() | 139 | text.into() |
140 | } | 140 | } |
141 | 141 | ||