Skip to content

Commit 3b10805

Browse files
krkflip1995
andcommitted
Remove pub from RedundantStaticLifetime.visit_type function.
Co-Authored-By: Philipp Krones <[email protected]>
1 parent 637e92d commit 3b10805

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/redundant_static_lifetime.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ declare_lint_pass!(RedundantStaticLifetime => [REDUNDANT_STATIC_LIFETIME]);
3333

3434
impl RedundantStaticLifetime {
3535
// Recursively visit types
36-
pub fn visit_type(&mut self, ty: &Ty, cx: &EarlyContext<'_>, reason: &str) {
36+
fn visit_type(&mut self, ty: &Ty, cx: &EarlyContext<'_>, reason: &str) {
3737
match ty.node {
3838
// Be careful of nested structures (arrays and tuples)
3939
TyKind::Array(ref ty, _) => {

0 commit comments

Comments
 (0)