Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfrey committed Jul 12, 2021
1 parent 15e495b commit 95e491b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rust/src/api.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::collections::btree_map::BTreeMap as HashMap;
use std::collections::btree_map::BTreeMap;

#[cfg(not(feature = "std"))]
use std::prelude::*;
Expand Down Expand Up @@ -70,7 +70,7 @@ pub fn verify_batch_membership(
proof: &ics23::CommitmentProof,
spec: &ics23::ProofSpec,
root: &CommitmentRoot,
items: HashMap<&[u8], &[u8]>,
items: BTreeMap<&[u8], &[u8]>,
) -> bool {
// ugly attempt to conditionally decompress...
let mut proof = proof;
Expand Down Expand Up @@ -399,7 +399,7 @@ mod tests {
if let Some(value) = &data.value {
let valid = super::verify_membership(&proof, spec, &data.root, &data.key, &value);
ensure!(valid, "invalid test vector");
let mut items = HashMap::new();
let mut items = BTreeMap::new();
items.insert(data.key.as_slice(), value.as_slice());
let valid = super::verify_batch_membership(&proof, spec, &data.root, items);
ensure!(valid, "invalid test vector");
Expand Down
1 change: 1 addition & 0 deletions rust/src/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ mod tests {
use crate::api;
use crate::ics23::{ExistenceProof, HashOp, InnerOp, LeafOp, LengthOp, ProofSpec};
use std::collections::btree_map::BTreeMap as HashMap;
#[cfg(not(feature = "std"))]
use std::prelude::*;

#[test]
Expand Down

0 comments on commit 95e491b

Please sign in to comment.