mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
28 lines
637 B
Text
28 lines
637 B
Text
error: unnecessary `pub(self)`
|
|
--> tests/ui/needless_pub_self.rs:13:1
|
|
|
|
|
LL | pub(self) fn a() {}
|
|
| ^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::needless-pub-self` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::needless_pub_self)]`
|
|
= help: remove it
|
|
|
|
error: unnecessary `pub(in self)`
|
|
--> tests/ui/needless_pub_self.rs:14:1
|
|
|
|
|
LL | pub(in self) fn b() {}
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
= help: remove it
|
|
|
|
error: unnecessary `pub(self)`
|
|
--> tests/ui/needless_pub_self.rs:20:5
|
|
|
|
|
LL | pub(self) fn f() {}
|
|
| ^^^^^^^^^
|
|
|
|
|
= help: remove it
|
|
|
|
error: aborting due to 3 previous errors
|
|
|