Closed
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() { }
}