File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ use rustc_middle::hir::map::Map;
16
16
use rustc_session:: { declare_lint_pass, declare_tool_lint} ;
17
17
use rustc_span:: source_map:: Span ;
18
18
use rustc_span:: symbol:: { kw, Symbol } ;
19
- use std:: iter:: FromIterator ;
20
19
21
20
declare_clippy_lint ! {
22
21
/// **What it does:** Checks for lifetime annotations which can be removed by
@@ -214,14 +213,15 @@ fn could_use_elision<'tcx>(
214
213
}
215
214
216
215
if allowed_lts
217
- . intersection ( & FxHashSet :: from_iter (
218
- input_visitor
216
+ . intersection (
217
+ & input_visitor
219
218
. nested_elision_site_lts
220
219
. iter ( )
221
220
. chain ( output_visitor. nested_elision_site_lts . iter ( ) )
222
221
. cloned ( )
223
- . filter ( |v| matches ! ( v, RefLt :: Named ( _) ) ) ,
224
- ) )
222
+ . filter ( |v| matches ! ( v, RefLt :: Named ( _) ) )
223
+ . collect ( ) ,
224
+ )
225
225
. next ( )
226
226
. is_some ( )
227
227
{
You can’t perform that action at this time.
0 commit comments