Use explict escape_default instead of dbg print
This commit is contained in:
@@ -135,7 +135,7 @@ fn doc_comment_text(comment: &ast::Comment) -> SmolStr {
|
|||||||
|
|
||||||
// Quote the string
|
// Quote the string
|
||||||
// Note that `tt::Literal` expect an escaped string
|
// Note that `tt::Literal` expect an escaped string
|
||||||
let text = format!("{:?}", text);
|
let text = format!("\"{}\"", text.escape_default());
|
||||||
text.into()
|
text.into()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user