File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ use syntax::{
106
106
107
107
use crate :: { db:: HirDatabase , InFile } ;
108
108
109
- pub ( super ) type SourceToDefCache = FxHashMap < ChildContainer , FxHashMap < HirFileId , DynMap > > ;
109
+ pub ( super ) type SourceToDefCache = FxHashMap < ( ChildContainer , HirFileId ) , DynMap > ;
110
110
111
111
pub ( super ) struct SourceToDefCtx < ' a , ' b > {
112
112
pub ( super ) db : & ' b dyn HirDatabase ,
@@ -257,8 +257,9 @@ impl SourceToDefCtx<'_, '_> {
257
257
258
258
fn cache_for ( & mut self , container : ChildContainer , file_id : HirFileId ) -> & DynMap {
259
259
let db = self . db ;
260
- let dyn_maps = self . cache . entry ( container) . or_default ( ) ;
261
- dyn_maps. entry ( file_id) . or_insert_with ( || container. child_by_source ( db, file_id) )
260
+ self . cache
261
+ . entry ( ( container, file_id) )
262
+ . or_insert_with ( || container. child_by_source ( db, file_id) )
262
263
}
263
264
264
265
pub ( super ) fn type_param_to_def ( & mut self , src : InFile < ast:: TypeParam > ) -> Option < TypeParamId > {
You can’t perform that action at this time.
0 commit comments