Skip to content

Commit

Permalink
style: rust fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptonemo committed May 5, 2021
1 parent 0222226 commit 7992083
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
5 changes: 4 additions & 1 deletion filecoin-hashers/src/poseidon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,10 @@ fn shared_hash_frs(preimage: &[<Bls12 as ScalarEngine>::Fr]) -> <Bls12 as Scalar
p.hash()
}

_ => panic_any(format!("Unsupported arity for Poseidon hasher: {}", preimage.len())),
_ => panic_any(format!(
"Unsupported arity for Poseidon hasher: {}",
preimage.len()
)),
}
}

Expand Down
8 changes: 6 additions & 2 deletions filecoin-proofs/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ fn test_verify_seal_fr32_validation() {

assert!(
haystack.contains(needle),
"\"{}\" did not contain \"{}\"", haystack, needle,
"\"{}\" did not contain \"{}\"",
haystack,
needle,
);
} else {
panic_any("should have failed comm_r to Fr32 conversion");
Expand Down Expand Up @@ -87,7 +89,9 @@ fn test_verify_seal_fr32_validation() {

assert!(
haystack.contains(needle),
"\"{}\" did not contain \"{}\"", haystack, needle,
"\"{}\" did not contain \"{}\"",
haystack,
needle,
);
} else {
panic_any("should have failed comm_d to Fr32 conversion");
Expand Down
3 changes: 2 additions & 1 deletion storage-proofs-porep/src/stacked/vanilla/proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ impl<'a, Tree: 'static + MerkleTreeTrait, G: 'static + Hasher> StackedDrg<'a, Tr
let labeled_node = rcp.c_x.get_node_at_layer(layer)?;
assert!(
proof.verify(&pub_inputs.replica_id, &labeled_node),
"Invalid encoding proof generated at layer {}", layer,
"Invalid encoding proof generated at layer {}",
layer,
);
trace!("Valid encoding proof generated at layer {}", layer);
}
Expand Down

0 comments on commit 7992083

Please sign in to comment.