Hash a type based on its name because the id could be empty (#1031)

This commit is contained in:
Dennis Kobert
2023-02-16 09:27:47 +01:00
committed by GitHub
parent c1b283c3ef
commit be26f76457
2 changed files with 6 additions and 6 deletions

View File

@@ -51,7 +51,7 @@ pub struct TypeDescriptor {
impl core::hash::Hash for TypeDescriptor {
fn hash<H: core::hash::Hasher>(&self, state: &mut H) {
self.id.hash(state);
self.name.hash(state);
}
}