mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-19 20:24:27 +00:00
Update Rust toolchain to 1.91 (#21179)
This commit is contained in:
parent
a151f9746d
commit
921f409ee8
17 changed files with 27 additions and 47 deletions
|
|
@ -334,7 +334,7 @@ class A: ...
|
|||
let options = PyFormatOptions::from_source_type(source_type);
|
||||
let printed = format_range(&source, TextRange::new(start, end), options).unwrap();
|
||||
|
||||
let mut formatted = source.to_string();
|
||||
let mut formatted = source.clone();
|
||||
formatted.replace_range(
|
||||
std::ops::Range::<usize>::from(printed.source_range()),
|
||||
printed.as_code(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue