Merge pull request #233 from birkenfeld/fix

collapsible_if: remove extraneous note output
This commit is contained in:
llogiq 2015-08-25 13:43:37 +02:00
commit 3fe85d457c

View File

@ -48,7 +48,6 @@ fn check_expr_expd(cx: &Context, e: &Expr, info: Option<&ExpnInfo>) {
if e.span.expn_id != sp.expn_id {
return;
}
cx.sess().note(&format!("{:?} -- {:?}", e.span, sp));
span_help_and_lint(cx, COLLAPSIBLE_IF, e.span,
"this if statement can be collapsed",
&format!("try\nif {} && {} {}",