-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
A-lintArea: New lintsArea: New lintsL-unnecessaryLint: Warn about unnecessary codeLint: Warn about unnecessary codegood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy
Description
pub(crate)
within mod
is redundant as the parent mod
is not public:
mod a {
pub(crate) fn f() { }
// f is not accessible outside of a, so it's the same as:
// pub fn f() { }
}
It's also redundant to re-state pub(crate)
:
pub(crate) mod b {
pub(crate) fn g() { }
// b is already crate-visible, so g is the same as:
// pub fn g() { }
}
kingsimmy and Luro02
Metadata
Metadata
Assignees
Labels
A-lintArea: New lintsArea: New lintsL-unnecessaryLint: Warn about unnecessary codeLint: Warn about unnecessary codegood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy