diff options
| author | James Wang <jameswang9909@hotmail.com> | 2019-10-03 14:38:33 -0500 |
|---|---|---|
| committer | flip1995 <hello@philkrones.com> | 2019-10-15 09:58:11 +0200 |
| commit | e64b27525b7b9a39281e64c408cc0b4c23252e02 (patch) | |
| tree | 5c63488929766f23736c38443664af706ea0f9fe | |
| parent | 664522baddd813e9a8a989479289be43fe0da5cd (diff) | |
| download | rust-e64b27525b7b9a39281e64c408cc0b4c23252e02.tar.gz rust-e64b27525b7b9a39281e64c408cc0b4c23252e02.zip | |
Remove prints
| -rw-r--r-- | clippy_lints/src/unused_self.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clippy_lints/src/unused_self.rs b/clippy_lints/src/unused_self.rs index 42644b88acc..5615dd37cd2 100644 --- a/clippy_lints/src/unused_self.rs +++ b/clippy_lints/src/unused_self.rs @@ -53,7 +53,6 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnusedSelf { let impl_item = cx.tcx.hir().impl_item(impl_item_ref.id); if let ImplItemKind::Method(_, body_id) = &impl_item.kind; then { - // println!("Visiting method: {:?}", impl_item); let body = cx.tcx.hir().body(*body_id); let self_param = &body.params[0]; let self_hir_id = self_param.pat.hir_id; @@ -64,7 +63,6 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnusedSelf { }; visitor.visit_body(body); if !visitor.uses_self { - // println!("LINTING SPAN: {:?}", &self_param.span); span_help_and_lint( cx, UNUSED_SELF, |
