From 683342c3f0e6cb4142876ad06ba418df2aae1450 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Fri, 5 Dec 2014 18:17:24 -0500 Subject: [PATCH] libgraphviz: fix fallout --- src/libgraphviz/lib.rs | 1 + src/libgraphviz/maybe_owned_vec.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libgraphviz/lib.rs b/src/libgraphviz/lib.rs index c1c397db213..2ca0c0e2043 100644 --- a/src/libgraphviz/lib.rs +++ b/src/libgraphviz/lib.rs @@ -269,6 +269,7 @@ html_favicon_url = "http://www.rust-lang.org/favicon.ico", html_root_url = "http://doc.rust-lang.org/nightly/")] #![feature(globs, slicing_syntax)] +#![feature(unboxed_closures)] pub use self::LabelText::*; diff --git a/src/libgraphviz/maybe_owned_vec.rs b/src/libgraphviz/maybe_owned_vec.rs index 05932db6632..7ebf9b63352 100644 --- a/src/libgraphviz/maybe_owned_vec.rs +++ b/src/libgraphviz/maybe_owned_vec.rs @@ -142,7 +142,7 @@ impl<'a,T:Clone> CloneSliceAllocPrelude for MaybeOwnedVector<'a,T> { self.as_slice().to_vec() } - fn partitioned(&self, f: |&T| -> bool) -> (Vec, Vec) { + fn partitioned(&self, f: F) -> (Vec, Vec) where F: FnMut(&T) -> bool { self.as_slice().partitioned(f) }