diff options
author | Matt Brubeck <mbrubeck@limpet.net> | 2015-03-18 14:30:22 -0700 |
---|---|---|
committer | Matt Brubeck <mbrubeck@limpet.net> | 2015-03-18 14:44:34 -0700 |
commit | 6ef9cb4e18cd262ff051500249076c8979e12525 (patch) | |
tree | 5186501b7a04cada358d60c294e964bc8330eedf /components/util/linked_list.rs | |
parent | 1ead92b474ab554160648452bec0c14b72b8c9dc (diff) | |
download | servo-6ef9cb4e18cd262ff051500249076c8979e12525.tar.gz servo-6ef9cb4e18cd262ff051500249076c8979e12525.zip |
Remove workaround for rust-lang/rust#22244
Diffstat (limited to 'components/util/linked_list.rs')
-rw-r--r-- | components/util/linked_list.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/components/util/linked_list.rs b/components/util/linked_list.rs index 95cadd025c1..5114f02c0e4 100644 --- a/components/util/linked_list.rs +++ b/components/util/linked_list.rs @@ -9,10 +9,6 @@ use std::mem; /// Splits the head off a list in O(1) time, and returns the head. pub fn split_off_head<T>(list: &mut LinkedList<T>) -> LinkedList<T> { - // FIXME: Work around https://github.com/rust-lang/rust/issues/22244 - if list.len() == 1 { - return mem::replace(list, LinkedList::new()); - } let tail = list.split_off(1); mem::replace(list, tail) } |