From 5047091f087cc5410750898e24ccf337e79e4afb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Stefanesco?= Date: Fri, 21 Aug 2015 19:13:46 +0200 Subject: [PATCH] Don't format raw strings --- src/expr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/expr.rs b/src/expr.rs index b8f94230c23..c849d58efae 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -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(),