Don't format raw strings

This commit is contained in:
Léo Stefanesco 2015-08-21 19:13:46 +02:00
parent 0a19c6d30c
commit 5047091f08

View File

@ -28,7 +28,7 @@ impl Rewrite for ast::Expr {
match self.node {
ast::Expr_::ExprLit(ref l) => {
match l.node {
ast::Lit_::LitStr(ref is, _) => {
ast::Lit_::LitStr(ref is, ast::StrStyle::CookedStr) => {
rewrite_string_lit(context, &is, l.span, width, offset)
}
_ => context.codemap.span_to_snippet(self.span).ok(),