Skip to content

Commit bb65f32

Browse files
committed
feat: update rust-toolchain to 1.83.0
feat: point to later proofs master style: fix require clippy updates
1 parent 5c0b466 commit bb65f32

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ big-tests = []
3030
fixed-rows-to-discard = ["filecoin-proofs-v1/fixed-rows-to-discard", "storage-proofs-core/fixed-rows-to-discard"]
3131

3232
[patch.crates-io]
33-
filecoin-proofs = { git = "https://github.com/filecoin-project/rust-fil-proofs", branch = "clear-api-cleanup" }
34-
fr32 = { git = "https://github.com/filecoin-project/rust-fil-proofs", branch = "clear-api-cleanup" }
35-
filecoin-hashers = { git = "https://github.com/filecoin-project/rust-fil-proofs", branch = "clear-api-cleanup" }
36-
storage-proofs-core = { git = "https://github.com/filecoin-project/rust-fil-proofs", branch = "clear-api-cleanup" }
33+
filecoin-proofs = { git = "https://github.com/filecoin-project/rust-fil-proofs" }
34+
fr32 = { git = "https://github.com/filecoin-project/rust-fil-proofs" }
35+
filecoin-hashers = { git = "https://github.com/filecoin-project/rust-fil-proofs" }
36+
storage-proofs-core = { git = "https://github.com/filecoin-project/rust-fil-proofs" }

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.70.0
1+
1.83.0

src/registry.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -982,6 +982,8 @@ mod tests {
982982
}
983983

984984
fn test_porep_id_aux(rsp: &RegisteredSealProof) {
985+
use std::fmt::Write;
986+
985987
let expected_porep_id = match rsp {
986988
RegisteredSealProof::StackedDrg2KiBV1 => {
987989
"0000000000000000000000000000000000000000000000000000000000000000"
@@ -1044,11 +1046,10 @@ mod tests {
10441046
"1300000000000000000000000000000000000000000000000000000000000000"
10451047
}
10461048
};
1047-
let hex: String = rsp
1048-
.porep_id()
1049-
.iter()
1050-
.map(|x| format!("{:01$x}", x, 2))
1051-
.collect();
1049+
let hex: String = rsp.porep_id().iter().fold(String::new(), |mut output, x| {
1050+
let _ = write!(output, "{:01$x}", x, 2);
1051+
output
1052+
});
10521053

10531054
assert_eq!(expected_porep_id, &hex);
10541055
}

src/seal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1787,7 +1787,7 @@ pub fn unseal_range<T: Into<PathBuf> + AsRef<Path>, R: Read, W: Write>(
17871787
///
17881788
/// * `registered_proof` - Selected seal proof for this byte source.
17891789
/// * `source` - A readable source of unprocessed piece bytes. The piece's commitment will be
1790-
/// generated for the bytes read from the source plus any added padding.
1790+
/// generated for the bytes read from the source plus any added padding.
17911791
/// * `piece_size` - The number of unpadded user-bytes which can be read from source before EOF.
17921792
///
17931793
/// Returns piece commitment in [`PieceInfo`] struct.

0 commit comments

Comments
 (0)