@@ -58,7 +58,7 @@ impl CrateImplBlocks {
5858
5959 pub fn lookup_impl_blocks_for_trait < ' a > (
6060 & ' a self ,
61- tr : & Trait ,
61+ tr : Trait ,
6262 ) -> impl Iterator < Item = ImplBlock > + ' a {
6363 self . impls_by_trait . get ( & tr) . into_iter ( ) . flat_map ( |i| i. iter ( ) ) . map (
6464 move |( module_id, impl_id) | {
@@ -68,8 +68,8 @@ impl CrateImplBlocks {
6868 )
6969 }
7070
71- fn collect_recursive ( & mut self , db : & impl HirDatabase , module : & Module ) {
72- let module_impl_blocks = db. impls_in_module ( module. clone ( ) ) ;
71+ fn collect_recursive ( & mut self , db : & impl HirDatabase , module : Module ) {
72+ let module_impl_blocks = db. impls_in_module ( module) ;
7373
7474 for ( impl_id, _) in module_impl_blocks. impls . iter ( ) {
7575 let impl_block = ImplBlock :: from_id ( module_impl_blocks. module , impl_id) ;
@@ -94,7 +94,7 @@ impl CrateImplBlocks {
9494 }
9595
9696 for child in module. children ( db) {
97- self . collect_recursive ( db, & child) ;
97+ self . collect_recursive ( db, child) ;
9898 }
9999 }
100100
@@ -108,7 +108,7 @@ impl CrateImplBlocks {
108108 impls_by_trait : FxHashMap :: default ( ) ,
109109 } ;
110110 if let Some ( module) = krate. root_module ( db) {
111- crate_impl_blocks. collect_recursive ( db, & module) ;
111+ crate_impl_blocks. collect_recursive ( db, module) ;
112112 }
113113 Arc :: new ( crate_impl_blocks)
114114 }
0 commit comments