feat: Add TestDefs to find usage of Expect, Insta and Snapbox

This commit is contained in:
roife 2024-12-25 15:50:35 +08:00
parent bfc223e857
commit dd788255b4
2 changed files with 168 additions and 21 deletions

View file

@ -5917,6 +5917,12 @@ impl HasCrate for Adt {
}
}
impl HasCrate for Impl {
fn krate(&self, db: &dyn HirDatabase) -> Crate {
self.module(db).krate()
}
}
impl HasCrate for Module {
fn krate(&self, _: &dyn HirDatabase) -> Crate {
Module::krate(*self)