diff options
| author | Marvin Löbel <loebel.marvin@gmail.com> | 2013-12-06 19:51:10 +0100 |
|---|---|---|
| committer | Marvin Löbel <loebel.marvin@gmail.com> | 2014-01-08 00:53:40 +0100 |
| commit | 90b394514dad9df9c55b795be724093765d9df3a (patch) | |
| tree | 7e14d65e0e865662485c6f9f0dd2ca9fdcdb619f /src/libextra/dlist.rs | |
| parent | 4329fc6730e381b3b06f9987327072c50a739ad4 (diff) | |
| download | rust-90b394514dad9df9c55b795be724093765d9df3a.tar.gz rust-90b394514dad9df9c55b795be724093765d9df3a.zip | |
Renamed Option::map_default and mutate_default to map_or and mutate_or_set
Diffstat (limited to 'src/libextra/dlist.rs')
| -rw-r--r-- | src/libextra/dlist.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libextra/dlist.rs b/src/libextra/dlist.rs index 7da92704ceb..c91f9326644 100644 --- a/src/libextra/dlist.rs +++ b/src/libextra/dlist.rs @@ -191,7 +191,7 @@ impl<T> DList<T> { /// Remove the last Node and return it, or None if the list is empty #[inline] fn pop_back_node(&mut self) -> Option<~Node<T>> { - self.list_tail.resolve().map_default(None, |tail| { + self.list_tail.resolve().map_or(None, |tail| { self.length -= 1; self.list_tail = tail.prev; match tail.prev.resolve() { |
