Update type.rs
This commit is contained in:
parent
ee4493fef6
commit
b0669cbc3f
|
@ -34,7 +34,10 @@ impl<'a> __Type<'a> {
|
||||||
},
|
},
|
||||||
registry::MetaTypeName::Named(ty) => __Type {
|
registry::MetaTypeName::Named(ty) => __Type {
|
||||||
registry,
|
registry,
|
||||||
detail: TypeDetail::Named(®istry.types[ty]),
|
detail: TypeDetail::Named(match registry.types.get(ty) {
|
||||||
|
Some(t) => t,
|
||||||
|
None => panic!("Type '{}' not found!", ty),
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user