Skip to content

Commit

Permalink
feat: update rust-toolchain to 1.83.0
Browse files Browse the repository at this point in the history
feat: point to later proofs master
style: fix require clippy updates
  • Loading branch information
cryptonemo committed Jan 15, 2025
1 parent 5c0b466 commit bb65f32
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ big-tests = []
fixed-rows-to-discard = ["filecoin-proofs-v1/fixed-rows-to-discard", "storage-proofs-core/fixed-rows-to-discard"]

[patch.crates-io]
filecoin-proofs = { git = "https://github.com/filecoin-project/rust-fil-proofs", branch = "clear-api-cleanup" }
fr32 = { git = "https://github.com/filecoin-project/rust-fil-proofs", branch = "clear-api-cleanup" }
filecoin-hashers = { git = "https://github.com/filecoin-project/rust-fil-proofs", branch = "clear-api-cleanup" }
storage-proofs-core = { git = "https://github.com/filecoin-project/rust-fil-proofs", branch = "clear-api-cleanup" }
filecoin-proofs = { git = "https://github.com/filecoin-project/rust-fil-proofs" }
fr32 = { git = "https://github.com/filecoin-project/rust-fil-proofs" }
filecoin-hashers = { git = "https://github.com/filecoin-project/rust-fil-proofs" }
storage-proofs-core = { git = "https://github.com/filecoin-project/rust-fil-proofs" }
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.70.0
1.83.0
11 changes: 6 additions & 5 deletions src/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -982,6 +982,8 @@ mod tests {
}

fn test_porep_id_aux(rsp: &RegisteredSealProof) {
use std::fmt::Write;

let expected_porep_id = match rsp {
RegisteredSealProof::StackedDrg2KiBV1 => {
"0000000000000000000000000000000000000000000000000000000000000000"
Expand Down Expand Up @@ -1044,11 +1046,10 @@ mod tests {
"1300000000000000000000000000000000000000000000000000000000000000"
}
};
let hex: String = rsp
.porep_id()
.iter()
.map(|x| format!("{:01$x}", x, 2))
.collect();
let hex: String = rsp.porep_id().iter().fold(String::new(), |mut output, x| {
let _ = write!(output, "{:01$x}", x, 2);
output
});

assert_eq!(expected_porep_id, &hex);
}
Expand Down
2 changes: 1 addition & 1 deletion src/seal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1787,7 +1787,7 @@ pub fn unseal_range<T: Into<PathBuf> + AsRef<Path>, R: Read, W: Write>(
///
/// * `registered_proof` - Selected seal proof for this byte source.
/// * `source` - A readable source of unprocessed piece bytes. The piece's commitment will be
/// generated for the bytes read from the source plus any added padding.
/// generated for the bytes read from the source plus any added padding.
/// * `piece_size` - The number of unpadded user-bytes which can be read from source before EOF.
///
/// Returns piece commitment in [`PieceInfo`] struct.
Expand Down

0 comments on commit bb65f32

Please sign in to comment.