Skip to content

Commit

Permalink
update version and test
Browse files Browse the repository at this point in the history
  • Loading branch information
ParkMyCar committed Oct 7, 2023
1 parent 62aa6b9 commit da69c5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/pub_underscore_fields.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ declare_clippy_lint! {
/// _descriptor: usize,
/// }
/// ```
#[clippy::version = "1.69.0"]
#[clippy::version = "1.74.0"]
pub PUB_UNDERSCORE_FIELDS,
pedantic,
"struct field prefixed with underscore and marked public"
Expand Down
1 change: 1 addition & 0 deletions tests/ui/pub_underscore_fields.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ LL | pub(super) _b: u8,
|
= help: consider removing the underscore, or making the field private
= note: `-D clippy::pub-underscore-fields` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::pub_underscore_fields)]`

error: field marked as public but also inferred as unused because it's prefixed with `_`
--> $DIR/pub_underscore_fields.rs:14:13
Expand Down

0 comments on commit da69c5e

Please sign in to comment.