@@ -246,59 +246,59 @@ impl<DB: HirDatabase> Semantics<'_, DB> {
246
246
}
247
247
248
248
pub fn to_adt_def ( & self , a : & ast:: Adt ) -> Option < Adt > {
249
- self . imp . to_def ( a) . map ( Adt :: from )
249
+ self . imp . to_def ( a)
250
250
}
251
251
252
252
pub fn to_const_def ( & self , c : & ast:: Const ) -> Option < Const > {
253
- self . imp . to_def ( c) . map ( Const :: from )
253
+ self . imp . to_def ( c)
254
254
}
255
255
256
256
pub fn to_enum_def ( & self , e : & ast:: Enum ) -> Option < Enum > {
257
- self . imp . to_def ( e) . map ( Enum :: from )
257
+ self . imp . to_def ( e)
258
258
}
259
259
260
260
pub fn to_enum_variant_def ( & self , v : & ast:: Variant ) -> Option < Variant > {
261
- self . imp . to_def ( v) . map ( Variant :: from )
261
+ self . imp . to_def ( v)
262
262
}
263
263
264
264
pub fn to_fn_def ( & self , f : & ast:: Fn ) -> Option < Function > {
265
- self . imp . to_def ( f) . map ( Function :: from )
265
+ self . imp . to_def ( f)
266
266
}
267
267
268
268
pub fn to_impl_def ( & self , i : & ast:: Impl ) -> Option < Impl > {
269
- self . imp . to_def ( i) . map ( Impl :: from )
269
+ self . imp . to_def ( i)
270
270
}
271
271
272
272
pub fn to_macro_def ( & self , m : & ast:: Macro ) -> Option < Macro > {
273
- self . imp . to_def ( m) . map ( Macro :: from )
273
+ self . imp . to_def ( m)
274
274
}
275
275
276
276
pub fn to_module_def ( & self , m : & ast:: Module ) -> Option < Module > {
277
- self . imp . to_def ( m) . map ( Module :: from )
277
+ self . imp . to_def ( m)
278
278
}
279
279
280
280
pub fn to_static_def ( & self , s : & ast:: Static ) -> Option < Static > {
281
- self . imp . to_def ( s) . map ( Static :: from )
281
+ self . imp . to_def ( s)
282
282
}
283
283
284
284
pub fn to_struct_def ( & self , s : & ast:: Struct ) -> Option < Struct > {
285
- self . imp . to_def ( s) . map ( Struct :: from )
285
+ self . imp . to_def ( s)
286
286
}
287
287
288
288
pub fn to_trait_alias_def ( & self , t : & ast:: TraitAlias ) -> Option < TraitAlias > {
289
- self . imp . to_def ( t) . map ( TraitAlias :: from )
289
+ self . imp . to_def ( t)
290
290
}
291
291
292
292
pub fn to_trait_def ( & self , t : & ast:: Trait ) -> Option < Trait > {
293
- self . imp . to_def ( t) . map ( Trait :: from )
293
+ self . imp . to_def ( t)
294
294
}
295
295
296
296
pub fn to_type_alias_def ( & self , t : & ast:: TypeAlias ) -> Option < TypeAlias > {
297
- self . imp . to_def ( t) . map ( TypeAlias :: from )
297
+ self . imp . to_def ( t)
298
298
}
299
299
300
300
pub fn to_union_def ( & self , u : & ast:: Union ) -> Option < Union > {
301
- self . imp . to_def ( u) . map ( Union :: from )
301
+ self . imp . to_def ( u)
302
302
}
303
303
}
304
304
0 commit comments