Skip to content

Commit 289a9af

Browse files
committed
cargo fmt
1 parent ad27e3f commit 289a9af

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clippy_lints/src/formatting.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use crate::utils::{differing_macro_contexts, in_macro, snippet_opt, span_note_and_lint};
2+
use if_chain::if_chain;
23
use rustc::lint::{in_external_macro, EarlyContext, EarlyLintPass, LintArray, LintPass};
34
use rustc::{declare_tool_lint, lint_array};
45
use syntax::ast;
56
use syntax::ptr::P;
6-
use if_chain::if_chain;
77

88
declare_clippy_lint! {
99
/// **What it does:** Checks for use of the non-existent `=*`, `=!` and `=-`
@@ -157,8 +157,7 @@ fn check_else(cx: &EarlyContext<'_>, expr: &ast::Expr) {
157157
if expr.span.lo().0 != 0 && expr.span.hi().0 != 0;
158158

159159
// this will be a span from the closing ‘}’ of the “then” block (excluding) to
160-
// the
161-
// “if” of the “else if” block (excluding)
160+
// the “if” of the “else if” block (excluding)
162161
let else_span = then.span.between(else_.span);
163162

164163
// the snippet should look like " else \n " with maybe comments anywhere

0 commit comments

Comments
 (0)