Skip to content

Commit

Permalink
Remove #[non_exhaustive] from Applicability
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed May 9, 2023
1 parent ce30369 commit 6082cde
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion crates/ruff/src/message/diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl Display for Diff<'_> {
Applicability::Automatic => "Fix",
Applicability::Suggested => "Suggested fix",
Applicability::Manual => "Possible fix",
_ => "Suggested fix", // For backwards compatibility, unspecified fixes are 'suggested'
Applicability::Unspecified => "Suggested fix", // For backwards compatibility, unspecified fixes are 'suggested'
};
writeln!(f, "ℹ {}", message.blue())?;

Expand Down
1 change: 0 additions & 1 deletion crates/ruff_diagnostics/src/fix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use crate::edit::Edit;
/// Indicates confidence in the correctness of a suggested fix.
#[derive(Default, Copy, Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[non_exhaustive]
pub enum Applicability {
/// The fix is definitely what the user intended, or maintains the exact meaning of the code.
/// This fix should be automatically applied.
Expand Down

0 comments on commit 6082cde

Please sign in to comment.