Merge pull request #19749 from Veykril/push-tsxvxzzmlxpq

refactor: Remove unnecessary `AsAny` trait
This commit is contained in:
Lukas Wirth 2025-05-05 14:53:57 +00:00 committed by GitHub
commit d40455fec0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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>()
}
}