Hash a type based on its name because the id could be empty (#1031)
This commit is contained in:
parent
7071aabba8
commit
761cec54ef
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -536,11 +536,11 @@ mod test {
|
|||
ids,
|
||||
vec![
|
||||
15907139529964845467,
|
||||
17186311536944112733,
|
||||
1674503539363691855,
|
||||
10408773954839245246,
|
||||
1677533587730447846,
|
||||
6826908746727711035
|
||||
14192092348022507362,
|
||||
14714934190542167928,
|
||||
4518275895314664278,
|
||||
13912679582583718470,
|
||||
3236993912700824422
|
||||
]
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue