Revert "oldmap: use &K instead of K in find and get"
This reverts commit 8e643525d4
.
This commit is contained in:
parent
0110dfb27c
commit
a4250a96fd
78 changed files with 479 additions and 482 deletions
|
@ -1331,11 +1331,11 @@ pub fn associate_type(tn: type_names, s: @str, t: TypeRef) {
|
|||
}
|
||||
|
||||
pub fn type_has_name(tn: type_names, t: TypeRef) -> Option<@str> {
|
||||
return tn.type_names.find(&t);
|
||||
return tn.type_names.find(t);
|
||||
}
|
||||
|
||||
pub fn name_has_type(tn: type_names, s: @str) -> Option<TypeRef> {
|
||||
return tn.named_types.find(&s);
|
||||
return tn.named_types.find(s);
|
||||
}
|
||||
|
||||
pub fn mk_type_names() -> type_names {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue