File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -67,9 +67,9 @@ impl<'a> LowerCtx<'a> {
67
67
Path :: from_src ( ast, self )
68
68
}
69
69
70
- pub ( crate ) fn ast_id < N : AstNode > ( & self , db : & dyn DefDatabase , item : & N ) -> Option < AstId < N > > {
70
+ pub ( crate ) fn ast_id < N : AstNode > ( & self , item : & N ) -> Option < AstId < N > > {
71
71
let & ( file_id, ref ast_id_map) = self . ast_id_map . as_ref ( ) ?;
72
- let ast_id_map = ast_id_map. get_or_init ( || db. ast_id_map ( file_id) ) ;
72
+ let ast_id_map = ast_id_map. get_or_init ( || self . db . ast_id_map ( file_id) ) ;
73
73
Some ( InFile :: new ( file_id, ast_id_map. ast_id ( item) ) )
74
74
}
75
75
}
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ impl TypeRef {
240
240
TypeRef :: DynTrait ( type_bounds_from_ast ( ctx, inner. type_bound_list ( ) ) )
241
241
}
242
242
ast:: Type :: MacroType ( mt) => match mt. macro_call ( ) {
243
- Some ( mc) => ctx. ast_id ( ctx . db , & mc) . map ( TypeRef :: Macro ) . unwrap_or ( TypeRef :: Error ) ,
243
+ Some ( mc) => ctx. ast_id ( & mc) . map ( TypeRef :: Macro ) . unwrap_or ( TypeRef :: Error ) ,
244
244
None => TypeRef :: Error ,
245
245
} ,
246
246
}
You can’t perform that action at this time.
0 commit comments