Skip to content

Commit 547c5c0

Browse files
committed
cargo fmt
1 parent 60c1bb0 commit 547c5c0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clippy_lints/src/formatting.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::utils::{differing_macro_contexts, in_macro, snippet_opt, span_note_and_lint};
2-
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass, in_external_macro};
2+
use rustc::lint::{in_external_macro, EarlyContext, EarlyLintPass, LintArray, LintPass};
33
use rustc::{declare_tool_lint, lint_array};
44
use syntax::ast;
55
use syntax::ptr::P;
@@ -149,7 +149,8 @@ fn check_else(cx: &EarlyContext<'_>, expr: &ast::Expr) {
149149
if let Some((then, &Some(ref else_))) = unsugar_if(expr) {
150150
if (is_block(else_) || unsugar_if(else_).is_some())
151151
&& !differing_macro_contexts(then.span, else_.span)
152-
&& !in_macro(then.span) && !in_external_macro(cx.sess, expr.span)
152+
&& !in_macro(then.span)
153+
&& !in_external_macro(cx.sess, expr.span)
153154
{
154155
// workaround for rust-lang/rust#43081
155156
if expr.span.lo().0 == 0 && expr.span.hi().0 == 0 {

0 commit comments

Comments
 (0)