Skip to content

Commit 683342c

Browse files
author
Jorge Aparicio
committed
libgraphviz: fix fallout
1 parent a7a065b commit 683342c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/libgraphviz/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@
269269
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
270270
html_root_url = "http://doc.rust-lang.org/nightly/")]
271271
#![feature(globs, slicing_syntax)]
272+
#![feature(unboxed_closures)]
272273

273274
pub use self::LabelText::*;
274275

src/libgraphviz/maybe_owned_vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ impl<'a,T:Clone> CloneSliceAllocPrelude<T> for MaybeOwnedVector<'a,T> {
142142
self.as_slice().to_vec()
143143
}
144144

145-
fn partitioned(&self, f: |&T| -> bool) -> (Vec<T>, Vec<T>) {
145+
fn partitioned<F>(&self, f: F) -> (Vec<T>, Vec<T>) where F: FnMut(&T) -> bool {
146146
self.as_slice().partitioned(f)
147147
}
148148

0 commit comments

Comments
 (0)