Skip to content

Commit

Permalink
Merge pull request #1 from niklasad1/na-rust2018ify
Browse files Browse the repository at this point in the history
fix: use rust2018 idioms
  • Loading branch information
NikVolf authored Sep 7, 2019
2 parents 5d0aa52 + c4f8f8e commit 265c6e5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
7 changes: 0 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
5 changes: 3 additions & 2 deletions src/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -740,4 +741,4 @@ mod tests {
}
}
}
}
}

0 comments on commit 265c6e5

Please sign in to comment.