RS.CLIPPY.NEEDLESS_PUB_SELF
Checks for usage of `pub(self)` and `pub(in self)`.
This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: needless_pub_self. Copyright ©2025 The Rust Team. All rights reserved.
What it does
Checks for usage of pub(self) and pub(in self).
Why is this bad?
It's unnecessary, omitting the pub entirely will give the same results.
Example
pub(self) type OptBox<T> = Option<Box<T>>;
Use instead:
type OptBox<T> = Option<Box<T>>;