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:
konsti 2023-08-25 23:42:03 +02:00 committed by GitHub
parent edb9b0c62a
commit 0e79074c31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View file

@ -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()])?,
}
}