Skip to content

Commit

Permalink
Rollup merge of #120329 - nnethercote:3349-precursors, r=fee1-dead
Browse files Browse the repository at this point in the history
RFC 3349 precursors

Some cleanups I found while working on RFC 3349 that are worth landing separately.

r? `@fee1-dead`
  • Loading branch information
matthiaskrgr authored Jan 26, 2024
2 parents a65fe78 + 9cbc582 commit f096e91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_dev/src/update_lints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
Expand Down

0 comments on commit f096e91

Please sign in to comment.