libgraphviz: fix fallout

This commit is contained in:
Jorge Aparicio 2014-12-05 18:17:24 -05:00
parent a7a065bd98
commit 683342c3f0
2 changed files with 2 additions and 1 deletions

View File

@ -269,6 +269,7 @@
html_favicon_url = "http://www.rust-lang.org/favicon.ico", html_favicon_url = "http://www.rust-lang.org/favicon.ico",
html_root_url = "http://doc.rust-lang.org/nightly/")] html_root_url = "http://doc.rust-lang.org/nightly/")]
#![feature(globs, slicing_syntax)] #![feature(globs, slicing_syntax)]
#![feature(unboxed_closures)]
pub use self::LabelText::*; pub use self::LabelText::*;

View File

@ -142,7 +142,7 @@ impl<'a,T:Clone> CloneSliceAllocPrelude<T> for MaybeOwnedVector<'a,T> {
self.as_slice().to_vec() self.as_slice().to_vec()
} }
fn partitioned(&self, f: |&T| -> bool) -> (Vec<T>, Vec<T>) { fn partitioned<F>(&self, f: F) -> (Vec<T>, Vec<T>) where F: FnMut(&T) -> bool {
self.as_slice().partitioned(f) self.as_slice().partitioned(f)
} }