You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This lint would check for instances of pub(self) and pub(in self) and suggest that they be removed.
Advantage
Removes extraneous visibility syntax where it has no effect at all. Per Visibility and Privacy from the Rust Reference:
pub(self) [...] is equivalent to pub(in self) or not using pub at all.
Drawbacks
Some codebases may use pub(self) or pub(in self) to denote a item that is meant for use within a submodule, and the lack of such to denote an item meant only for use within the same file.