We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ac97b6 commit f38255fCopy full SHA for f38255f
clippy_lints/src/partial_pub_fields.rs
@@ -1,5 +1,5 @@
1
use clippy_utils::diagnostics::span_lint_and_help;
2
-use rustc_ast::ast::*;
+use rustc_ast::ast::{Item, ItemKind};
3
use rustc_lint::{EarlyContext, EarlyLintPass};
4
use rustc_session::{declare_lint_pass, declare_tool_lint};
5
@@ -58,7 +58,7 @@ impl EarlyLintPass for PartialPubFields {
58
if all_priv && field.vis.kind.is_pub() {
59
span_lint_and_help(
60
cx,
61
- &PARTIAL_PUB_FIELDS,
+ PARTIAL_PUB_FIELDS,
62
field.vis.span,
63
msg,
64
None,
0 commit comments