Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9cbc582

Browse files
committedJan 25, 2024
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.
1 parent 6b359b7 commit 9cbc582

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎clippy_dev/src/update_lints.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ fn remove_line_splices(s: &str) -> String {
928928
.and_then(|s| s.strip_suffix('"'))
929929
.unwrap_or_else(|| panic!("expected quoted string, found `{s}`"));
930930
let mut res = String::with_capacity(s.len());
931-
unescape::unescape_literal(s, unescape::Mode::Str, &mut |range, ch| {
931+
unescape::unescape_unicode(s, unescape::Mode::Str, &mut |range, ch| {
932932
if ch.is_ok() {
933933
res.push_str(&s[range]);
934934
}

0 commit comments

Comments
 (0)
Failed to load comments.