Skip to content

Commit 6a93de8

Browse files
committed
expand footer messages a bit
1 parent 84a81c9 commit 6a93de8

File tree

1 file changed

+8
-2
lines changed
  • crates/ruff_db/src/diagnostic/render

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,10 @@ impl std::fmt::Display for Diff<'_> {
190190
f,
191191
"{note}: {msg}",
192192
note = fmt_styled("note", self.stylesheet.warning),
193-
msg = fmt_styled("This is an unsafe fix", self.stylesheet.emphasis)
193+
msg = fmt_styled(
194+
"This is an unsafe fix and may remove comments or change runtime behavior",
195+
self.stylesheet.emphasis
196+
)
194197
)?;
195198
}
196199
Applicability::DisplayOnly => {
@@ -200,7 +203,10 @@ impl std::fmt::Display for Diff<'_> {
200203
f,
201204
"{note}: {msg}",
202205
note = fmt_styled("note", self.stylesheet.error),
203-
msg = fmt_styled("This is a display-only fix", self.stylesheet.emphasis)
206+
msg = fmt_styled(
207+
"This is a display-only fix and is likely to be incorrect",
208+
self.stylesheet.emphasis
209+
)
204210
)?;
205211
}
206212
}

0 commit comments

Comments
 (0)