diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-24 15:24:58 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-25 12:28:11 +1100 |
| commit | 9cbc5829a83f6b0b72c391ccded463885bd36351 (patch) | |
| tree | 0e9c638e497273adb7d3475e8510986b8ebd0c2d | |
| parent | 6b359b7e1ba5ac4352f81564dc5739bb96fbaf7c (diff) | |
| download | rust-9cbc5829a83f6b0b72c391ccded463885bd36351.tar.gz rust-9cbc5829a83f6b0b72c391ccded463885bd36351.zip | |
Rename the unescaping functions.
`unescape_literal` becomes `unescape_unicode`, and `unescape_c_string` becomes `unescape_mixed`. Because rfc3349 will mean that C string literals will no longer be the only mixed utf8 literals.
| -rw-r--r-- | clippy_dev/src/update_lints.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_dev/src/update_lints.rs b/clippy_dev/src/update_lints.rs index 6b76a44debf..f598f5d3d50 100644 --- a/clippy_dev/src/update_lints.rs +++ b/clippy_dev/src/update_lints.rs @@ -928,7 +928,7 @@ fn remove_line_splices(s: &str) -> String { .and_then(|s| s.strip_suffix('"')) .unwrap_or_else(|| panic!("expected quoted string, found `{s}`")); let mut res = String::with_capacity(s.len()); - unescape::unescape_literal(s, unescape::Mode::Str, &mut |range, ch| { + unescape::unescape_unicode(s, unescape::Mode::Str, &mut |range, ch| { if ch.is_ok() { res.push_str(&s[range]); } |
