File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
crates/ruff_db/src/diagnostic/render Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ resolver = "2"
55[workspace .package ]
66# Please update rustfmt.toml when bumping the Rust edition
77edition = " 2024"
8- rust-version = " 1.87 "
8+ rust-version = " 1.88 "
99homepage = " https://docs.astral.sh/ruff"
1010documentation = " https://docs.astral.sh/ruff"
1111repository = " https://github.com/astral-sh/ruff"
Original file line number Diff line number Diff 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) ?;
You can’t perform that action at this time.
0 commit comments