diff --git a/cli/polka-storage-provider/server/src/pipeline/types.rs b/cli/polka-storage-provider/server/src/pipeline/types.rs index 6e4c06e7d..96de7e487 100644 --- a/cli/polka-storage-provider/server/src/pipeline/types.rs +++ b/cli/polka-storage-provider/server/src/pipeline/types.rs @@ -1,9 +1,6 @@ use std::path::PathBuf; -use primitives_commitment::{ - piece::PieceInfo, - Commitment, -}; +use primitives_commitment::{piece::PieceInfo, Commitment}; use primitives_proofs::{DealId, SectorNumber}; use serde::{Deserialize, Serialize}; use storagext::types::market::DealProposal; diff --git a/lib/polka-storage-proofs/src/porep/sealer.rs b/lib/polka-storage-proofs/src/porep/sealer.rs index 7c1fb257c..5f3f0e00d 100644 --- a/lib/polka-storage-proofs/src/porep/sealer.rs +++ b/lib/polka-storage-proofs/src/porep/sealer.rs @@ -108,7 +108,8 @@ impl Sealer { ) -> Result, PoRepError> { let mut result_pieces = current_pieces.clone(); let sector_size: UnpaddedBytesAmount = self.porep_config.sector_size.into(); - let padding_pieces = filler_pieces(sector_size - UnpaddedBytesAmount(sector_occupied_space)); + let padding_pieces = + filler_pieces(sector_size - UnpaddedBytesAmount(sector_occupied_space)); result_pieces.extend(padding_pieces.into_iter().map(|p| { PieceInfo::from_filecoin_piece_info(p, primitives_commitment::CommitmentKind::Piece) }));