remove issue #3148 workarounds (no longer needed)
This commit is contained in:
parent
b34f871dda
commit
b91a51daca
3 changed files with 2 additions and 14 deletions
|
@ -856,9 +856,6 @@ pub impl Decoder: serialize::Decoder {
|
|||
debug!("read_vec_elt(idx=%u)", idx);
|
||||
match *self.peek() {
|
||||
List(ref list) => {
|
||||
// FIXME(#3148)---should be inferred
|
||||
let list: &self/~[Json] = list;
|
||||
|
||||
self.stack.push(&list[idx]);
|
||||
f()
|
||||
}
|
||||
|
@ -885,9 +882,6 @@ pub impl Decoder: serialize::Decoder {
|
|||
let top = self.peek();
|
||||
match *top {
|
||||
Object(ref obj) => {
|
||||
// FIXME(#3148) This hint should not be necessary.
|
||||
let obj: &self/~Object = obj;
|
||||
|
||||
match obj.find(&name.to_owned()) {
|
||||
None => die!(fmt!("no such field: %s", name)),
|
||||
Some(json) => {
|
||||
|
@ -917,8 +911,6 @@ pub impl Decoder: serialize::Decoder {
|
|||
debug!("read_tup_elt(idx=%u)", idx);
|
||||
match *self.peek() {
|
||||
List(ref list) => {
|
||||
// FIXME(#3148)---should be inferred
|
||||
let list: &self/~[Json] = list;
|
||||
self.stack.push(&list[idx]);
|
||||
f()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue