More updates for RFC 1214
This commit is contained in:
parent
edb6d7b17b
commit
eeb4655886
|
@ -16,11 +16,9 @@ readme = "README.md"
|
||||||
name = "bitcoin"
|
name = "bitcoin"
|
||||||
path = "src/lib.rs"
|
path = "src/lib.rs"
|
||||||
|
|
||||||
[dependencies.eventual]
|
|
||||||
git = "https://github.com/carllerche/eventual"
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
byteorder = "0.3"
|
byteorder = "0.3"
|
||||||
|
eventual = "0.1"
|
||||||
num = "0.1"
|
num = "0.1"
|
||||||
num_cpus = "0.2"
|
num_cpus = "0.2"
|
||||||
rand = "0.3"
|
rand = "0.3"
|
||||||
|
|
|
@ -63,7 +63,7 @@ impl<I: Iterator> Pair<I> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns an iterator that returns elements of the original iterator 2 at a time
|
/// Returns an iterator that returns elements of the original iterator 2 at a time
|
||||||
pub trait Pairable : Sized {
|
pub trait Pairable : Sized + Iterator {
|
||||||
/// Returns an iterator that returns elements of the original iterator 2 at a time
|
/// Returns an iterator that returns elements of the original iterator 2 at a time
|
||||||
fn pair(self) -> Pair<Self>;
|
fn pair(self) -> Pair<Self>;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue