@@ -3,19 +3,19 @@ use if_chain::if_chain;
3
3
use rustc_ast:: ast:: RangeLimits ;
4
4
use rustc_errors:: Applicability ;
5
5
use rustc_hir:: { BinOpKind , Expr , ExprKind , PathSegment , QPath } ;
6
- use rustc_lint:: { LintContext , LateContext , LateLintPass } ;
6
+ use rustc_lint:: { LateContext , LateLintPass , LintContext } ;
7
7
use rustc_middle:: ty;
8
8
use rustc_semver:: RustcVersion ;
9
- use rustc_session:: { impl_lint_pass , declare_tool_lint } ;
9
+ use rustc_session:: { declare_tool_lint , impl_lint_pass } ;
10
10
use rustc_span:: source_map:: { Span , Spanned } ;
11
11
use rustc_span:: sym;
12
12
use rustc_span:: symbol:: Ident ;
13
13
use std:: cmp:: Ordering ;
14
14
15
15
use crate :: utils:: sugg:: Sugg ;
16
16
use crate :: utils:: {
17
- get_parent_expr, is_integer_const, single_segment_path, snippet, snippet_opt, snippet_with_applicability ,
18
- span_lint, span_lint_and_sugg, span_lint_and_then, meets_msrv
17
+ get_parent_expr, is_integer_const, meets_msrv , single_segment_path, snippet, snippet_opt,
18
+ snippet_with_applicability , span_lint, span_lint_and_sugg, span_lint_and_then,
19
19
} ;
20
20
use crate :: utils:: { higher, SpanlessEq } ;
21
21
@@ -191,7 +191,7 @@ impl<'tcx> LateLintPass<'tcx> for Ranges {
191
191
ExprKind :: Binary ( ref op, ref l, ref r) => {
192
192
if meets_msrv ( self . msrv . as_ref ( ) , & MANUAL_RANGE_CONTAINS_MSRV ) {
193
193
check_possible_range_contains ( cx, op. node , l, r, expr. span ) ;
194
- }
194
+ }
195
195
} ,
196
196
_ => { } ,
197
197
}
0 commit comments