Skip to content

Commit 0b60584

Browse files
authored
Bump MSRV to Rust 1.88 (#20470)
1 parent 821b2f8 commit 0b60584

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ resolver = "2"
55
[workspace.package]
66
# Please update rustfmt.toml when bumping the Rust edition
77
edition = "2024"
8-
rust-version = "1.87"
8+
rust-version = "1.88"
99
homepage = "https://docs.astral.sh/ruff"
1010
documentation = "https://docs.astral.sh/ruff"
1111
repository = "https://github.com/astral-sh/ruff"

crates/ruff_db/src/diagnostic/render/full.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,11 @@ impl<'a> FullRenderer<'a> {
5858
writeln!(f, "{}", renderer.render(diag.to_annotate()))?;
5959
}
6060

61-
if self.config.show_fix_diff && diag.has_applicable_fix(self.config) {
62-
if let Some(diff) = Diff::from_diagnostic(diag, &stylesheet, self.resolver) {
63-
write!(f, "{diff}")?;
64-
}
61+
if self.config.show_fix_diff
62+
&& diag.has_applicable_fix(self.config)
63+
&& let Some(diff) = Diff::from_diagnostic(diag, &stylesheet, self.resolver)
64+
{
65+
write!(f, "{diff}")?;
6566
}
6667

6768
writeln!(f)?;

0 commit comments

Comments
 (0)