mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-15 16:10:38 +00:00
Upgrade to Rust 1.78 (#11260)
This commit is contained in:
parent
349a4cf8ce
commit
6a1e555537
69 changed files with 67 additions and 549 deletions
|
@ -218,7 +218,7 @@ fn contains_unescaped_newline(haystack: &str) -> bool {
|
|||
let mut rest = haystack;
|
||||
|
||||
while let Some(index) = memchr::memchr(b'\\', rest.as_bytes()) {
|
||||
rest = &rest[index + 1..].trim_whitespace_start();
|
||||
rest = rest[index + 1..].trim_whitespace_start();
|
||||
|
||||
if rest.starts_with('\n') {
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue