@@ -1342,30 +1342,30 @@ impl<'a> Resolver<'a> {
1342
1342
extern_crate_map : self
1343
1343
. extern_crate_map
1344
1344
. iter ( )
1345
- . map ( |( k, v) | ( self . definitions . local_def_id ( k. clone ( ) ) . to_def_id ( ) , v. clone ( ) ) )
1345
+ . map ( |( & k, & v) | ( self . definitions . local_def_id ( k) . to_def_id ( ) , v) )
1346
1346
. collect ( ) ,
1347
1347
export_map : self
1348
1348
. export_map
1349
1349
. iter ( )
1350
- . map ( |( k, v) | {
1350
+ . map ( |( & k, v) | {
1351
1351
(
1352
- k. clone ( ) ,
1352
+ k,
1353
1353
v. iter ( )
1354
- . map ( |e| e. clone ( ) . map_id ( |id| self . definitions . node_id_to_hir_id ( id) ) )
1354
+ . map ( |e| e. map_id ( |id| self . definitions . node_id_to_hir_id ( id) ) )
1355
1355
. collect ( ) ,
1356
1356
)
1357
1357
} )
1358
1358
. collect ( ) ,
1359
1359
trait_map : self
1360
1360
. trait_map
1361
1361
. iter ( )
1362
- . map ( |( k, v) | {
1362
+ . map ( |( & k, v) | {
1363
1363
(
1364
- self . definitions . node_id_to_hir_id ( k. clone ( ) ) ,
1364
+ self . definitions . node_id_to_hir_id ( k) ,
1365
1365
v. iter ( )
1366
+ . cloned ( )
1366
1367
. map ( |tc| {
1367
- tc. clone ( )
1368
- . map_import_ids ( |id| self . definitions . node_id_to_hir_id ( id) )
1368
+ tc. map_import_ids ( |id| self . definitions . node_id_to_hir_id ( id) )
1369
1369
} )
1370
1370
. collect ( ) ,
1371
1371
)
@@ -1374,17 +1374,17 @@ impl<'a> Resolver<'a> {
1374
1374
glob_map : self
1375
1375
. glob_map
1376
1376
. iter ( )
1377
- . map ( |( id, names) | ( self . definitions . local_def_id ( id. clone ( ) ) , names. clone ( ) ) )
1377
+ . map ( |( & id, names) | ( self . definitions . local_def_id ( id) , names. clone ( ) ) )
1378
1378
. collect ( ) ,
1379
1379
maybe_unused_trait_imports : self
1380
1380
. maybe_unused_trait_imports
1381
1381
. iter ( )
1382
- . map ( |id| self . definitions . local_def_id ( id. clone ( ) ) )
1382
+ . map ( |& id| self . definitions . local_def_id ( id) )
1383
1383
. collect ( ) ,
1384
1384
maybe_unused_extern_crates : self
1385
1385
. maybe_unused_extern_crates
1386
1386
. iter ( )
1387
- . map ( |( id, sp) | ( self . definitions . local_def_id ( id. clone ( ) ) . to_def_id ( ) , sp. clone ( ) ) )
1387
+ . map ( |& ( id, sp) | ( self . definitions . local_def_id ( id) . to_def_id ( ) , sp) )
1388
1388
. collect ( ) ,
1389
1389
extern_prelude : self
1390
1390
. extern_prelude
0 commit comments