Don't format raw strings
This commit is contained in:
parent
0a19c6d30c
commit
5047091f08
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ impl Rewrite for ast::Expr {
|
||||||
match self.node {
|
match self.node {
|
||||||
ast::Expr_::ExprLit(ref l) => {
|
ast::Expr_::ExprLit(ref l) => {
|
||||||
match l.node {
|
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)
|
rewrite_string_lit(context, &is, l.span, width, offset)
|
||||||
}
|
}
|
||||||
_ => context.codemap.span_to_snippet(self.span).ok(),
|
_ => context.codemap.span_to_snippet(self.span).ok(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue