mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
libgraphviz: fix fallout
This commit is contained in:
@@ -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::*;
|
||||
|
||||
|
||||
@@ -142,7 +142,7 @@ fn to_vec(&self) -> Vec<T> {
|
||||
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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user