Skip to content

Commit f38255f

Browse files
committed
fix dogfood
Signed-off-by: TennyZhuang <[email protected]>
1 parent 7ac97b6 commit f38255f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/partial_pub_fields.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use clippy_utils::diagnostics::span_lint_and_help;
2-
use rustc_ast::ast::*;
2+
use rustc_ast::ast::{Item, ItemKind};
33
use rustc_lint::{EarlyContext, EarlyLintPass};
44
use rustc_session::{declare_lint_pass, declare_tool_lint};
55

@@ -58,7 +58,7 @@ impl EarlyLintPass for PartialPubFields {
5858
if all_priv && field.vis.kind.is_pub() {
5959
span_lint_and_help(
6060
cx,
61-
&PARTIAL_PUB_FIELDS,
61+
PARTIAL_PUB_FIELDS,
6262
field.vis.span,
6363
msg,
6464
None,

0 commit comments

Comments
 (0)