Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire authored and cryptonemo committed Oct 18, 2021
1 parent bfcd057 commit accb95f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion filecoin-proofs/src/api/post_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ pub fn single_partition_vanilla_proofs<Tree: MerkleTreeTrait>(
) -> Result<VanillaProof<Tree>> {
info!("single_partition_vanilla_proofs:start");
ensure!(pub_inputs.k.is_some(), "must have a partition index");
let partition_index = pub_inputs.k.unwrap();
let partition_index = pub_inputs.k.expect("prechecked");

debug!("processing partition: {}", partition_index);
ensure!(
Expand Down
2 changes: 1 addition & 1 deletion storage-proofs-post/src/fallback/vanilla.rs
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ impl<'a, Tree: 'a + MerkleTreeTrait> ProofScheme<'a> for FallbackPoSt<'a, Tree>
pub_inputs.k.is_some(),
"must be called with a partition index"
);
let partition_index = pub_inputs.k.unwrap();
let partition_index = pub_inputs.k.expect("prechecked");
let challenge_count = pub_params.challenge_count;
let num_sectors_per_chunk = pub_params.sector_count;

Expand Down

0 comments on commit accb95f

Please sign in to comment.