Replace `GetDefId` with inherent methods
Now that it's only implemented for `Type`, using inherent methods instead means that imports are no longer necessary. Also, `GetDefId` is only meant to be used with `Type`, so it shouldn't be a trait.
Showing
想要评论请 注册 或 登录