diff --git a/Cargo.toml b/Cargo.toml index b2d0d81..6373417 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,4 +12,4 @@ quickcheck = "0.8" derive_more = "0.15" bigint = "4" byteorder = "1" -blake2-rfc = { git = "https://github.com/gtank/blake2-rfc.git", rev = "7a5b5fc99ae483a0043db7547fb79a6fa44b88a9" } +blake2 = { package = "blake2-rfc", git = "https://github.com/gtank/blake2-rfc.git", rev = "7a5b5fc99ae483a0043db7547fb79a6fa44b88a9" } diff --git a/src/lib.rs b/src/lib.rs index 5c3b673..cac2313 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,13 +2,6 @@ //! //! To be used in zebra and via FFI bindings in zcashd -#[cfg(test)] #[macro_use] extern crate assert_matches; -#[cfg(test)] #[macro_use] extern crate quickcheck; -extern crate derive_more; -extern crate bigint; -extern crate byteorder; -extern crate blake2_rfc as blake2; - mod tree; mod node_data; diff --git a/src/tree.rs b/src/tree.rs index 3e2d4b0..d5210e5 100644 --- a/src/tree.rs +++ b/src/tree.rs @@ -300,7 +300,8 @@ fn combine_nodes<'a>(left: IndexedNode<'a>, right: IndexedNode<'a>) -> Entry { mod tests { use super::{Entry, NodeData, Tree, EntryLink, EntryKind}; - use quickcheck::TestResult; + use quickcheck::{quickcheck, TestResult}; + use assert_matches::assert_matches; fn leaf(height: u32) -> NodeData { NodeData { @@ -740,4 +741,4 @@ mod tests { } } } -} \ No newline at end of file +}