mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:24:57 +00:00
Update Rust toolchain to 1.89 (#19807)
This commit is contained in:
parent
b22586fa0e
commit
7dfde3b929
101 changed files with 234 additions and 200 deletions
|
@ -645,7 +645,7 @@ pub(crate) fn normalize_string(
|
|||
start_offset: usize,
|
||||
new_flags: AnyStringFlags,
|
||||
escape_braces: bool,
|
||||
) -> Cow<str> {
|
||||
) -> Cow<'_, str> {
|
||||
// The normalized string if `input` is not yet normalized.
|
||||
// `output` must remain empty if `input` is already normalized.
|
||||
let mut output = String::new();
|
||||
|
@ -798,7 +798,7 @@ impl UnicodeEscape {
|
|||
///
|
||||
/// * `\u`, `\U'` and `\x`: To use lower case for the characters `a-f`.
|
||||
/// * `\N`: To use uppercase letters
|
||||
fn normalize(self, input: &str) -> Option<Cow<str>> {
|
||||
fn normalize(self, input: &str) -> Option<Cow<'_, str>> {
|
||||
let mut normalised = String::new();
|
||||
|
||||
let len = match self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue