From 048f12d9f0bcd7357d9a885639928a90915577ab Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Sat, 4 May 2019 17:03:22 +0800 Subject: Use explict `escape_default` instead of dbg print --- crates/ra_mbe/src/syntax_bridge.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates') 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 { // Quote the string // Note that `tt::Literal` expect an escaped string - let text = format!("{:?}", text); + let text = format!("\"{}\"", text.escape_default()); text.into() } -- cgit v1.2.3