Skip to content

Commit

Permalink
Convert some push_back users to push
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Jul 23, 2014
1 parent 79a9805 commit 5599b69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libserialize/collection_impls.rs
Expand Up @@ -15,7 +15,7 @@ use std::default::Default;
use std::hash::{Hash, Hasher};

use {Decodable, Encodable, Decoder, Encoder};
use std::collections::{DList, RingBuf, TreeMap, TreeSet, Deque, HashMap, HashSet,
use std::collections::{DList, RingBuf, TreeMap, TreeSet, HashMap, HashSet,
TrieMap, TrieSet};
use std::collections::enum_set::{EnumSet, CLike};

Expand All @@ -39,7 +39,7 @@ impl<E, D:Decoder<E>,T:Decodable<D, E>> Decodable<D, E> for DList<T> {
d.read_seq(|d, len| {
let mut list = DList::new();
for i in range(0u, len) {
list.push_back(try!(d.read_seq_elt(i, |d| Decodable::decode(d))));
list.push(try!(d.read_seq_elt(i, |d| Decodable::decode(d))));
}
Ok(list)
})
Expand All @@ -66,7 +66,7 @@ impl<E, D:Decoder<E>,T:Decodable<D, E>> Decodable<D, E> for RingBuf<T> {
d.read_seq(|d, len| {
let mut deque: RingBuf<T> = RingBuf::new();
for i in range(0u, len) {
deque.push_back(try!(d.read_seq_elt(i, |d| Decodable::decode(d))));
deque.push(try!(d.read_seq_elt(i, |d| Decodable::decode(d))));
}
Ok(deque)
})
Expand Down

0 comments on commit 5599b69

Please sign in to comment.