mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 13:51:37 +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
|
@ -805,6 +805,7 @@ pub struct FormatState<Context> {
|
|||
group_id_builder: UniqueGroupIdBuilder,
|
||||
}
|
||||
|
||||
#[allow(clippy::missing_fields_in_debug)]
|
||||
impl<Context> std::fmt::Debug for FormatState<Context>
|
||||
where
|
||||
Context: std::fmt::Debug,
|
||||
|
|
|
@ -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()])?,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
1.71
|
||||
1.72
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue