Update applicability messages for clarity in tests (#8541)

These names are only ever displayed internally right now and we could be
clearer in our test snapshots.

The diff is kind of scary because all of the tests fixtures are updated.
This commit is contained in:
Zanie Blue 2023-11-07 10:11:43 -06:00 committed by GitHub
parent 7dabc4598b
commit 7873ca38e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
523 changed files with 3085 additions and 3086 deletions

View file

@ -54,9 +54,9 @@ impl Display for Diff<'_> {
let message = match self.fix.applicability() {
// TODO(zanieb): Adjust this messaging once it's user-facing
Applicability::Safe => "Fix",
Applicability::Unsafe => "Suggested fix",
Applicability::Display => "Possible fix",
Applicability::Safe => "Safe fix",
Applicability::Unsafe => "Unsafe fix",
Applicability::DisplayOnly => "Display-only fix",
};
writeln!(f, " {}", message.blue())?;