Replace some usages of the old unescape_ functions in AST, clippy and tests.

This commit is contained in:
Julian Wollersberger 2020-05-13 10:03:49 +02:00
parent 41fe5c1ca7
commit ff9a9ed37c

View File

@ -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