remove some method resolve workarounds
This commit is contained in:
parent
28643d4135
commit
641aec7407
51 changed files with 118 additions and 118 deletions
|
@ -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),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue