Remove pub from RedundantStaticLifetime.visit_type function.

Co-Authored-By: Philipp Krones <hello@philkrones.com>
This commit is contained in:
Kerem 2019-06-12 19:57:49 +02:00 committed by flip1995
parent 637e92d44e
commit 3b1080542b
No known key found for this signature in database
GPG Key ID: 693086869D506637

View File

@ -33,7 +33,7 @@ declare_lint_pass!(RedundantStaticLifetime => [REDUNDANT_STATIC_LIFETIME]);
impl RedundantStaticLifetime {
// Recursively visit types
pub fn visit_type(&mut self, ty: &Ty, cx: &EarlyContext<'_>, reason: &str) {
fn visit_type(&mut self, ty: &Ty, cx: &EarlyContext<'_>, reason: &str) {
match ty.node {
// Be careful of nested structures (arrays and tuples)
TyKind::Array(ref ty, _) => {