Skip to content

Commit b10882a

Browse files
committed
fix dogfood
Signed-off-by: TennyZhuang <zty0826@gmail.com>
1 parent 7ac97b6 commit b10882a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clippy_lints/src/partial_pub_fields.rs

Lines changed: 3 additions & 3 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,
@@ -68,7 +68,7 @@ impl EarlyLintPass for PartialPubFields {
6868
} else if all_pub && !field.vis.kind.is_pub() {
6969
span_lint_and_help(
7070
cx,
71-
&PARTIAL_PUB_FIELDS,
71+
PARTIAL_PUB_FIELDS,
7272
field.vis.span,
7373
msg,
7474
None,

0 commit comments

Comments
 (0)