mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-21 02:23:19 +00:00
23 lines
521 B
Text
23 lines
521 B
Text
|
error: unnecessary `pub(self)`
|
||
|
--> $DIR/needless_pub_self.rs:13:1
|
||
|
|
|
||
|
LL | pub(self) fn a() {}
|
||
|
| ^^^^^^^^^ help: remove it
|
||
|
|
|
||
|
= note: `-D clippy::needless-pub-self` implied by `-D warnings`
|
||
|
|
||
|
error: unnecessary `pub(in self)`
|
||
|
--> $DIR/needless_pub_self.rs:14:1
|
||
|
|
|
||
|
LL | pub(in self) fn b() {}
|
||
|
| ^^^^^^^^^^^^ help: remove it
|
||
|
|
||
|
error: unnecessary `pub(self)`
|
||
|
--> $DIR/needless_pub_self.rs:20:5
|
||
|
|
|
||
|
LL | pub(self) fn f() {}
|
||
|
| ^^^^^^^^^ help: remove it
|
||
|
|
||
|
error: aborting due to 3 previous errors
|
||
|
|