refactor: Remove unnecessary AsAny trait

This commit is contained in:
Lukas Wirth 2025-05-05 16:04:57 +02:00
parent fdfa707807
commit 091b7b2465
4 changed files with 4 additions and 56 deletions

View file

@ -380,8 +380,4 @@ impl ProcMacroExpander for IdentityWhenValidProcMacroExpander {
panic!("got invalid macro input: {:?}", parse.errors());
}
}
fn eq_dyn(&self, other: &dyn ProcMacroExpander) -> bool {
other.as_any().type_id() == std::any::TypeId::of::<Self>()
}
}