File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -264,7 +264,6 @@ where
264
264
// with an ID which doesn't exist in our open dirs list.
265
265
let idx_to_close = cluster_position_by_id ( & self . open_dirs , dir. search_id ) . unwrap ( ) ;
266
266
self . open_dirs . remove ( idx_to_close) ;
267
- drop ( dir) ;
268
267
}
269
268
270
269
/// Look in a directory for a named file.
@@ -664,7 +663,6 @@ where
664
663
let idx_to_close = cluster_position_by_id ( & self . open_files , file. search_id ) . unwrap ( ) ;
665
664
self . open_files . remove ( idx_to_close) ;
666
665
667
- drop ( file) ;
668
666
Ok ( ( ) )
669
667
}
670
668
@@ -733,8 +731,8 @@ where
733
731
}
734
732
}
735
733
736
- fn cluster_position_by_id ( vec : & [ ClusterDescriptor ] , id_to_find : SearchId ) -> Option < usize > {
737
- vec . iter ( ) . position ( |f| f. compare_id ( id_to_find) )
734
+ fn cluster_position_by_id ( list : & [ ClusterDescriptor ] , id_to_find : SearchId ) -> Option < usize > {
735
+ list . iter ( ) . position ( |f| f. compare_id ( id_to_find) )
738
736
}
739
737
740
738
fn cluster_already_open (
You can’t perform that action at this time.
0 commit comments