1
Fork 0

rename hashmap find_ref/get_ref -> find/get

This commit is contained in:
Daniel Micay 2013-01-23 11:47:43 -05:00
parent 203fcbd0f3
commit ee0a8c68ab
3 changed files with 10 additions and 10 deletions

View file

@ -911,7 +911,7 @@ pub impl Decoder: serialize::Decoder {
// FIXME(#3148) This hint should not be necessary.
let obj: &self/~Object = obj;
match obj.find_ref(&name.to_owned()) {
match obj.find(&name.to_owned()) {
None => fail fmt!("no such field: %s", name),
Some(json) => {
self.stack.push(json);
@ -969,7 +969,7 @@ impl Json : Eq {
if d0.len() == d1.len() {
let mut equal = true;
for d0.each |k, v0| {
match d1.find_ref(k) {
match d1.find(k) {
Some(v1) if v0 == v1 => { },
_ => { equal = false; break }
}