mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-15 16:10:38 +00:00
Update to Rust 1.72 (#6874)
Update to [Rust 1.72](https://blog.rust-lang.org/2023/08/24/Rust-1.72.0.html), fixed the failing lints.
This commit is contained in:
parent
edb9b0c62a
commit
0e79074c31
3 changed files with 3 additions and 2 deletions
|
@ -197,7 +197,7 @@ impl FormatRule<Suite, PyFormatContext<'_>> for FormatSuite {
|
|||
match self.kind {
|
||||
SuiteKind::TopLevel => {
|
||||
match lines_after_ignoring_trivia(preceding.end(), source) {
|
||||
0 | 1 | 2 => empty_line().fmt(f)?,
|
||||
0..=2 => empty_line().fmt(f)?,
|
||||
_ => write!(f, [empty_line(), empty_line()])?,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue