diff --git a/filecoin-hashers/src/poseidon.rs b/filecoin-hashers/src/poseidon.rs index db92a4a4bc..3df0b4bd6a 100644 --- a/filecoin-hashers/src/poseidon.rs +++ b/filecoin-hashers/src/poseidon.rs @@ -218,7 +218,10 @@ fn shared_hash_frs(preimage: &[::Fr]) -> panic_any(format!("Unsupported arity for Poseidon hasher: {}", preimage.len())), + _ => panic_any(format!( + "Unsupported arity for Poseidon hasher: {}", + preimage.len() + )), } } diff --git a/filecoin-proofs/tests/mod.rs b/filecoin-proofs/tests/mod.rs index 0be4d3ce1e..8bd38cd9f5 100644 --- a/filecoin-proofs/tests/mod.rs +++ b/filecoin-proofs/tests/mod.rs @@ -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"); @@ -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"); diff --git a/storage-proofs-porep/src/stacked/vanilla/proof.rs b/storage-proofs-porep/src/stacked/vanilla/proof.rs index 61f325c086..b03820dec5 100644 --- a/storage-proofs-porep/src/stacked/vanilla/proof.rs +++ b/storage-proofs-porep/src/stacked/vanilla/proof.rs @@ -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); }