mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-02-07 06:44:11 +00:00
fix: use rust2018 idioms
This commit is contained in:
parent
5d0aa521c2
commit
c4f8f8ea04
@ -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" }
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user