Fix trim_right/trim_left deprecation warnings (#3252)

This commit is contained in:
Philipp Hansch 2018-12-18 03:21:31 +01:00 committed by Seiichi Uchida
parent 16c292dcf8
commit d0785954c8
13 changed files with 68 additions and 63 deletions

View file

@ -1252,12 +1252,12 @@ fn rewrite_string_lit(context: &RewriteContext, span: Span, shape: Shape) -> Opt
format!(
"{}{}",
new_indent.to_string(context.config),
line.trim_left()
line.trim_start()
)
})
.collect::<Vec<_>>()
.join("\n")
.trim_left(),
.trim_start(),
);
return wrap_str(indented_string_lit, context.config.max_width(), shape);
} else {