Fix trim_right/trim_left deprecation warnings (#3252)
This commit is contained in:
parent
16c292dcf8
commit
d0785954c8
13 changed files with 68 additions and 63 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue