File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,6 @@ from_str_radix_10 = "allow"
180
180
get_first = " allow"
181
181
if_same_then_else = " allow"
182
182
large_enum_variant = " allow"
183
- map_clone = " allow"
184
183
match_like_matches_macro = " allow"
185
184
match_single_binding = " allow"
186
185
needless_borrow = " allow"
Original file line number Diff line number Diff line change @@ -197,10 +197,8 @@ impl SourceAnalyzer {
197
197
) -> Option < ( Type , Option < Type > ) > {
198
198
let pat_id = self . pat_id ( pat) ?;
199
199
let infer = self . infer . as_ref ( ) ?;
200
- let coerced = infer
201
- . pat_adjustments
202
- . get ( & pat_id)
203
- . and_then ( |adjusts| adjusts. last ( ) . map ( |adjust| adjust. clone ( ) ) ) ;
200
+ let coerced =
201
+ infer. pat_adjustments . get ( & pat_id) . and_then ( |adjusts| adjusts. last ( ) . cloned ( ) ) ;
204
202
let ty = infer[ pat_id] . clone ( ) ;
205
203
let mk_ty = |ty| Type :: new_with_resolver ( db, & self . resolver , ty) ;
206
204
Some ( ( mk_ty ( ty) , coerced. map ( mk_ty) ) )
You can’t perform that action at this time.
0 commit comments