1
Fork 0

remove some method resolve workarounds

This commit is contained in:
Daniel Micay 2013-07-04 22:13:26 -04:00
parent 28643d4135
commit 641aec7407
51 changed files with 118 additions and 118 deletions

View file

@ -950,7 +950,7 @@ impl serialize::Decoder for Decoder {
}
ref json => fail!("invalid variant: %?", *json),
};
let idx = match names.iter().position_(|n| str::eq_slice(*n, name)) {
let idx = match names.iter().position(|n| str::eq_slice(*n, name)) {
Some(idx) => idx,
None => fail!("Unknown variant name: %?", name),
};