diff options
| author | Julian Wollersberger <24991778+Julian-Wollersberger@users.noreply.github.com> | 2020-05-13 10:03:49 +0200 |
|---|---|---|
| committer | Julian Wollersberger <24991778+Julian-Wollersberger@users.noreply.github.com> | 2020-05-13 10:05:04 +0200 |
| commit | 43ae7854543ea98516c3946e5f14ff3bb0f18bfd (patch) | |
| tree | 628cc02199910a84396af6793978447d916f4754 /src/tools | |
| parent | 18cc63d693a3a1d130ba533994c895b56fed3769 (diff) | |
| download | rust-43ae7854543ea98516c3946e5f14ff3bb0f18bfd.tar.gz rust-43ae7854543ea98516c3946e5f14ff3bb0f18bfd.zip | |
Replace some usages of the old `unescape_` functions in AST, clippy and tests.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/clippy/clippy_lints/src/write.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/clippy/clippy_lints/src/write.rs b/src/tools/clippy/clippy_lints/src/write.rs index 5ad43ad55a3..26bf463bd29 100644 --- a/src/tools/clippy/clippy_lints/src/write.rs +++ b/src/tools/clippy/clippy_lints/src/write.rs @@ -483,8 +483,8 @@ fn check_newlines(fmtstr: &StrLit) -> bool { }; match fmtstr.style { - StrStyle::Cooked => unescape::unescape_str(contents, &mut cb), - StrStyle::Raw(_) => unescape::unescape_raw_str(contents, &mut cb), + StrStyle::Cooked => unescape::unescape_literal(contents, unescape::Mode::Str, &mut cb), + StrStyle::Raw(_) => unescape::unescape_literal(contents, unescape::Mode::RawStr, &mut cb), } should_lint |
