Skip to content

Commit

Permalink
fix dogfood
Browse files Browse the repository at this point in the history
Signed-off-by: TennyZhuang <[email protected]>
  • Loading branch information
TennyZhuang committed Oct 16, 2022
1 parent 7ac97b6 commit f38255f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/partial_pub_fields.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use clippy_utils::diagnostics::span_lint_and_help;
use rustc_ast::ast::*;
use rustc_ast::ast::{Item, ItemKind};
use rustc_lint::{EarlyContext, EarlyLintPass};
use rustc_session::{declare_lint_pass, declare_tool_lint};

Expand Down Expand Up @@ -58,7 +58,7 @@ impl EarlyLintPass for PartialPubFields {
if all_priv && field.vis.kind.is_pub() {
span_lint_and_help(
cx,
&PARTIAL_PUB_FIELDS,
PARTIAL_PUB_FIELDS,
field.vis.span,
msg,
None,
Expand Down

0 comments on commit f38255f

Please sign in to comment.