diff options
| author | Philipp Hansch <dev@phansch.net> | 2018-12-18 03:21:31 +0100 |
|---|---|---|
| committer | Seiichi Uchida <seuchida@gmail.com> | 2018-12-18 11:21:31 +0900 |
| commit | d0785954c846dbfdc9116084a731ccd44b0205ce (patch) | |
| tree | b89f09563f845c4454138ad9804b642d3abef6c8 /src/expr.rs | |
| parent | 16c292dcf8974d72bf1474a9653566e1e160d393 (diff) | |
Fix trim_right/trim_left deprecation warnings (#3252)
Diffstat (limited to 'src/expr.rs')
| -rw-r--r-- | src/expr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expr.rs b/src/expr.rs index 5d0383ddcb2..9509f0f4980 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -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 { |
