Remove prints

This commit is contained in:
James Wang 2019-10-03 14:38:33 -05:00 committed by flip1995
parent 664522badd
commit e64b27525b
No known key found for this signature in database
GPG Key ID: 693086869D506637

View File

@ -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,