From e367a8714dc722248d63e2126ef6b0875c18f7a2 Mon Sep 17 00:00:00 2001 From: Phi Date: Wed, 13 Aug 2025 07:37:00 +0200 Subject: [PATCH 1/5] chore: bump filecoin-proofs-api to v19.0 chore: bump filecoin-proofs-api to v19.0 --- rust/Cargo.lock | 354 ++++++++++++++++++++++++++++++++++++++++++------ rust/Cargo.toml | 2 +- 2 files changed, 313 insertions(+), 43 deletions(-) diff --git a/rust/Cargo.lock b/rust/Cargo.lock index e2ec0db0..43ce6060 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -222,12 +222,6 @@ dependencies = [ "serde", ] -[[package]] -name = "bitflags" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aad18937a628ec6abcd26d1489012cc0e18c21798210f491af69ded9b881106d" - [[package]] name = "bitflags" version = "1.3.2" @@ -482,7 +476,19 @@ dependencies = [ "nom", "pathdiff", "serde", - "toml", + "toml 0.5.11", +] + +[[package]] +name = "config" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68578f196d2a33ff61b27fae256c3164f65e36382648e30666dde05b8cc9dfdf" +dependencies = [ + "nom", + "pathdiff", + "serde", + "toml 0.8.20", ] [[package]] @@ -1187,6 +1193,16 @@ dependencies = [ "libc", ] +[[package]] +name = "fdlimit" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e182f7dbc2ef73d9ef67351c5fbbea084729c48362d3ce9dd44c28e32e277fe5" +dependencies = [ + "libc", + "thiserror 1.0.69", +] + [[package]] name = "ff" version = "0.13.1" @@ -1230,7 +1246,7 @@ dependencies = [ "blstrs", "cid", "fil_logger", - "filecoin-proofs-api", + "filecoin-proofs-api 19.0.0", "filepath", "fvm 2.11.0", "fvm 3.13.0", @@ -1277,6 +1293,26 @@ dependencies = [ "sha2", ] +[[package]] +name = "filecoin-hashers" +version = "14.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "35146fe3c46db098607ca7decb0349236a90592d6fee0c2eea7301dd1f5733ac" +dependencies = [ + "anyhow", + "bellperson", + "blstrs", + "ff", + "generic-array 0.14.7", + "hex", + "lazy_static", + "merkletree", + "neptune", + "rand", + "serde", + "sha2", +] + [[package]] name = "filecoin-proofs" version = "18.1.0" @@ -1289,8 +1325,8 @@ dependencies = [ "blake2b_simd", "blstrs", "ff", - "filecoin-hashers", - "fr32", + "filecoin-hashers 13.1.0", + "fr32 11.1.0", "generic-array 0.14.7", "hex", "iowrap", @@ -1304,10 +1340,44 @@ dependencies = [ "serde", "serde_json", "sha2", - "storage-proofs-core", - "storage-proofs-porep", - "storage-proofs-post", - "storage-proofs-update", + "storage-proofs-core 18.1.0", + "storage-proofs-porep 18.1.0", + "storage-proofs-post 18.1.0", + "storage-proofs-update 18.1.0", + "typenum", +] + +[[package]] +name = "filecoin-proofs" +version = "19.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47ba6651d5fb07c62163c8ddb4e3274e1a4101b91c86b358769a2c561b284fcb" +dependencies = [ + "anyhow", + "bellperson", + "bincode", + "blake2b_simd", + "blstrs", + "ff", + "filecoin-hashers 14.0.0", + "fr32 12.0.0", + "generic-array 0.14.7", + "hex", + "iowrap", + "lazy_static", + "log", + "memmap2 0.5.10", + "merkletree", + "once_cell", + "rand", + "rayon", + "serde", + "serde_json", + "sha2", + "storage-proofs-core 19.0.0", + "storage-proofs-porep 19.0.0", + "storage-proofs-post 19.0.0", + "storage-proofs-update 19.0.0", "typenum", ] @@ -1320,11 +1390,27 @@ dependencies = [ "anyhow", "bincode", "blstrs", - "filecoin-proofs", - "fr32", + "filecoin-proofs 18.1.0", + "fr32 11.1.0", "lazy_static", "serde", - "storage-proofs-core", + "storage-proofs-core 18.1.0", +] + +[[package]] +name = "filecoin-proofs-api" +version = "19.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d50610f79df0975b54461fd65820183b99326fda4f24223d507c1b75cb303b14" +dependencies = [ + "anyhow", + "bincode", + "blstrs", + "filecoin-proofs 19.0.0", + "fr32 12.0.0", + "lazy_static", + "serde", + "storage-proofs-core 19.0.0", ] [[package]] @@ -1407,6 +1493,20 @@ dependencies = [ "thiserror 1.0.69", ] +[[package]] +name = "fr32" +version = "12.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "421ea28e99936741d874ac1718a79d5cfdb1a4f3ad6c26950b2386ac94aa3b1a" +dependencies = [ + "anyhow", + "blstrs", + "byte-slice-cast", + "byteorder", + "ff", + "thiserror 2.0.12", +] + [[package]] name = "fs2" version = "0.4.3" @@ -1436,7 +1536,7 @@ dependencies = [ "derive-getters", "derive_builder", "derive_more", - "filecoin-proofs-api", + "filecoin-proofs-api 18.1.0", "fvm-wasm-instrument 0.2.0", "fvm_ipld_amt", "fvm_ipld_blockstore", @@ -1472,7 +1572,7 @@ dependencies = [ "byteorder", "cid", "derive_more", - "filecoin-proofs-api", + "filecoin-proofs-api 18.1.0", "fvm-wasm-instrument 0.4.0", "fvm_ipld_amt", "fvm_ipld_blockstore", @@ -1508,7 +1608,7 @@ dependencies = [ "anyhow", "cid", "derive_more", - "filecoin-proofs-api", + "filecoin-proofs-api 18.1.0", "fvm-wasm-instrument 0.4.0", "fvm_ipld_amt", "fvm_ipld_blockstore", @@ -1632,7 +1732,7 @@ dependencies = [ "cs_serde_bytes", "data-encoding", "data-encoding-macro", - "filecoin-proofs-api", + "filecoin-proofs-api 18.1.0", "fvm_ipld_blockstore", "fvm_ipld_encoding", "k256", @@ -1663,7 +1763,7 @@ dependencies = [ "cid", "data-encoding", "data-encoding-macro", - "filecoin-proofs-api", + "filecoin-proofs-api 18.1.0", "fvm_ipld_encoding", "k256", "lazy_static", @@ -1691,7 +1791,7 @@ dependencies = [ "cid", "data-encoding", "data-encoding-macro", - "filecoin-proofs-api", + "filecoin-proofs-api 18.1.0", "fvm_ipld_encoding", "k256", "num-bigint", @@ -1835,12 +1935,12 @@ dependencies = [ ] [[package]] -name = "hwloc" -version = "0.5.0" +name = "hwloc2" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2934f84993b8b4bcae9b6a4e5f0aca638462dda9c7b4f26a570241494f21e0f4" +checksum = "0f2a4b6f52a58293f5a69375e8bedfc53b15e439f751d9d20a62689632fe348e" dependencies = [ - "bitflags 0.7.0", + "bitflags 1.3.2", "errno 0.2.8", "kernel32-sys", "libc", @@ -2105,6 +2205,15 @@ dependencies = [ "either", ] +[[package]] +name = "itertools" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186" +dependencies = [ + "either", +] + [[package]] name = "itertools" version = "0.14.0" @@ -3102,6 +3211,15 @@ dependencies = [ "syn 2.0.100", ] +[[package]] +name = "serde_spanned" +version = "0.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3" +dependencies = [ + "serde", +] + [[package]] name = "serde_tuple" version = "0.5.0" @@ -3165,6 +3283,20 @@ dependencies = [ "sha2-asm", ] +[[package]] +name = "sha2raw" +version = "14.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90007d4997c15161e16bda035b950af95dd6ddd597c13ec676bc4aef519b466f" +dependencies = [ + "byteorder", + "cpufeatures", + "digest", + "fake-simd", + "lazy_static", + "opaque-debug", +] + [[package]] name = "sha3" version = "0.10.8" @@ -3285,10 +3417,10 @@ dependencies = [ "blstrs", "byteorder", "cbc", - "config", + "config 0.12.0", "ff", - "filecoin-hashers", - "fr32", + "filecoin-hashers 13.1.0", + "fr32 11.1.0", "fs2", "generic-array 0.14.7", "itertools 0.10.5", @@ -3307,6 +3439,41 @@ dependencies = [ "thiserror 1.0.69", ] +[[package]] +name = "storage-proofs-core" +version = "19.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2a6f583102c3faa65e7aad3d1cf3ffe5e9c9699e7265141a020c2d45c937d66" +dependencies = [ + "aes", + "anyhow", + "bellperson", + "blake2b_simd", + "blstrs", + "byteorder", + "cbc", + "config 0.14.1", + "ff", + "filecoin-hashers 14.0.0", + "fr32 12.0.0", + "fs2", + "generic-array 0.14.7", + "itertools 0.13.0", + "lazy_static", + "log", + "memmap2 0.5.10", + "merkletree", + "num_cpus", + "rand", + "rand_chacha", + "rayon", + "semver", + "serde", + "serde_json", + "sha2", + "thiserror 2.0.12", +] + [[package]] name = "storage-proofs-porep" version = "18.1.0" @@ -3322,14 +3489,13 @@ dependencies = [ "byteorder", "chacha20", "crossbeam", - "fdlimit", + "fdlimit 0.2.1", "ff", - "filecoin-hashers", - "fr32", + "filecoin-hashers 13.1.0", + "fr32 11.1.0", "generic-array 0.14.7", "glob", "hex", - "hwloc", "lazy_static", "libc", "log", @@ -3345,8 +3511,51 @@ dependencies = [ "serde", "serde_json", "sha2", - "sha2raw", - "storage-proofs-core", + "sha2raw 13.1.0", + "storage-proofs-core 18.1.0", + "yastl", +] + +[[package]] +name = "storage-proofs-porep" +version = "19.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4a21ea69adc933398389c36be5b35865dc3fac8b064bb95c7104dc7bc8426e0" +dependencies = [ + "anyhow", + "bellperson", + "bincode", + "blake2b_simd", + "blstrs", + "byte-slice-cast", + "byteorder", + "chacha20", + "crossbeam", + "fdlimit 0.3.0", + "ff", + "filecoin-hashers 14.0.0", + "fr32 12.0.0", + "generic-array 0.14.7", + "glob", + "hex", + "hwloc2", + "lazy_static", + "libc", + "log", + "memmap2 0.5.10", + "merkletree", + "neptune", + "num-bigint", + "num-traits", + "num_cpus", + "pretty_assertions", + "rayon", + "rustversion", + "serde", + "serde_json", + "sha2", + "sha2raw 14.0.0", + "storage-proofs-core 19.0.0", "yastl", ] @@ -3361,13 +3570,33 @@ dependencies = [ "blstrs", "byteorder", "ff", - "filecoin-hashers", + "filecoin-hashers 13.1.0", "generic-array 0.14.7", "log", "rayon", "serde", "sha2", - "storage-proofs-core", + "storage-proofs-core 18.1.0", +] + +[[package]] +name = "storage-proofs-post" +version = "19.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b040787160b2381f1f86ac08f8789283da753e97df25e6be4ea3cc8615d5497c" +dependencies = [ + "anyhow", + "bellperson", + "blstrs", + "byteorder", + "ff", + "filecoin-hashers 14.0.0", + "generic-array 0.14.7", + "log", + "rayon", + "serde", + "sha2", + "storage-proofs-core 19.0.0", ] [[package]] @@ -3380,8 +3609,8 @@ dependencies = [ "bellperson", "blstrs", "ff", - "filecoin-hashers", - "fr32", + "filecoin-hashers 13.1.0", + "fr32 11.1.0", "generic-array 0.14.7", "lazy_static", "log", @@ -3390,8 +3619,32 @@ dependencies = [ "neptune", "rayon", "serde", - "storage-proofs-core", - "storage-proofs-porep", + "storage-proofs-core 18.1.0", + "storage-proofs-porep 18.1.0", +] + +[[package]] +name = "storage-proofs-update" +version = "19.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1118e3f9dff7c93a68d06a17ae89bf051321278be810e4c3c24a1a88bbc0c3e7" +dependencies = [ + "anyhow", + "bellperson", + "blstrs", + "ff", + "filecoin-hashers 14.0.0", + "fr32 12.0.0", + "generic-array 0.14.7", + "lazy_static", + "log", + "memmap2 0.5.10", + "merkletree", + "neptune", + "rayon", + "serde", + "storage-proofs-core 19.0.0", + "storage-proofs-porep 19.0.0", ] [[package]] @@ -3561,11 +3814,26 @@ dependencies = [ "serde", ] +[[package]] +name = "toml" +version = "0.8.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd87a5cdd6ffab733b2f74bc4fd7ee5fff6634124999ac278c35fc78c6120148" +dependencies = [ + "serde", + "serde_spanned", + "toml_datetime", + "toml_edit", +] + [[package]] name = "toml_datetime" version = "0.6.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41" +dependencies = [ + "serde", +] [[package]] name = "toml_edit" @@ -3574,6 +3842,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "17b4795ff5edd201c7cd6dca065ae59972ce77d1b80fa0a84d94950ece7d1474" dependencies = [ "indexmap 2.9.0", + "serde", + "serde_spanned", "toml_datetime", "winnow", ] diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 44b99946..fd8bd355 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -46,7 +46,7 @@ cid = { version = "0.11.1", features = ["serde"], default-features = false } lazy_static = "1.5.0" serde = "1.0.219" safer-ffi = { version = "0.1.13", features = ["proc_macros"] } -filecoin-proofs-api = { version = "18.1", default-features = false } +filecoin-proofs-api = { version = "19.0", default-features = false } yastl = "0.1.2" [dev-dependencies] From 1a66f3c49c8705972fe3284752e6772bcd87ffa8 Mon Sep 17 00:00:00 2001 From: Phi Date: Wed, 13 Aug 2025 09:11:45 +0200 Subject: [PATCH 2/5] fix: remove unused sector_size from cache function calls fix: remove unused sector_size from cache function calls --- rust/src/proofs/api.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/src/proofs/api.rs b/rust/src/proofs/api.rs index 1afc3ed2..7ed068ce 100644 --- a/rust/src/proofs/api.rs +++ b/rust/src/proofs/api.rs @@ -1225,7 +1225,7 @@ fn clear_cache( cache_dir_path: c_slice::Ref<'_, u8>, ) -> repr_c::Box { catch_panic_response("clear_cache", || { - seal::clear_cache(sector_size, &as_path_buf(&cache_dir_path)?) + seal::clear_cache(&as_path_buf(&cache_dir_path)?) }) } @@ -1235,7 +1235,7 @@ fn clear_synthetic_proofs( cache_dir_path: c_slice::Ref<'_, u8>, ) -> repr_c::Box { catch_panic_response("clear_synthetic_proofs", || { - seal::clear_synthetic_proofs(sector_size, &as_path_buf(&cache_dir_path)?) + seal::clear_synthetic_proofs(&as_path_buf(&cache_dir_path)?) }) } From a823243b7c18a60f7469a0818874b9b7c0e5b59c Mon Sep 17 00:00:00 2001 From: Phi Date: Wed, 13 Aug 2025 09:35:28 +0200 Subject: [PATCH 3/5] chore: prefix sector_size parameters with underscore to indicate intentional unused variables chore: prefix sector_size parameters with underscore to indicate intentional unused variables --- rust/src/proofs/api.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/src/proofs/api.rs b/rust/src/proofs/api.rs index 7ed068ce..802875d9 100644 --- a/rust/src/proofs/api.rs +++ b/rust/src/proofs/api.rs @@ -1221,7 +1221,7 @@ fn generate_data_commitment( #[ffi_export] fn clear_cache( - sector_size: u64, + _sector_size: u64, cache_dir_path: c_slice::Ref<'_, u8>, ) -> repr_c::Box { catch_panic_response("clear_cache", || { @@ -1231,7 +1231,7 @@ fn clear_cache( #[ffi_export] fn clear_synthetic_proofs( - sector_size: u64, + _sector_size: u64, cache_dir_path: c_slice::Ref<'_, u8>, ) -> repr_c::Box { catch_panic_response("clear_synthetic_proofs", || { From 389b1975737d6557b077b3d3baef27657d0d569b Mon Sep 17 00:00:00 2001 From: Phi Date: Wed, 13 Aug 2025 10:07:02 +0200 Subject: [PATCH 4/5] feat(api)!: remove unused sectorSize from cache functions BREAKING CHANGE: ClearCache and ClearSyntheticProofs no longer accept sectorSize parameter. --- cgo/proofs.go | 6 ++---- proofs.go | 8 ++++---- rust/src/proofs/api.rs | 11 ----------- 3 files changed, 6 insertions(+), 19 deletions(-) diff --git a/cgo/proofs.go b/cgo/proofs.go index 8592acb3..93e7bf22 100644 --- a/cgo/proofs.go +++ b/cgo/proofs.go @@ -322,17 +322,15 @@ func GetNumPartitionForFallbackPost(registeredProof RegisteredPoStProof, numSect return uint(resp.value), nil } -func ClearCache(sectorSize uint64, cacheDirPath SliceRefUint8) error { +func ClearCache(cacheDirPath SliceRefUint8) error { resp := (*resultVoid)(C.clear_cache( - C.uint64_t(sectorSize), (C.slice_ref_uint8_t)(cacheDirPath))) defer resp.destroy() return CheckErr(resp) } -func ClearSyntheticProofs(sectorSize uint64, cacheDirPath SliceRefUint8) error { +func ClearSyntheticProofs(cacheDirPath SliceRefUint8) error { resp := (*resultVoid)(C.clear_synthetic_proofs( - C.uint64_t(sectorSize), (C.slice_ref_uint8_t)(cacheDirPath))) defer resp.destroy() return CheckErr(resp) diff --git a/proofs.go b/proofs.go index 3b63e6ea..c84b3597 100644 --- a/proofs.go +++ b/proofs.go @@ -664,13 +664,13 @@ func GetNumPartitionForFallbackPost(proofType abi.RegisteredPoStProof, numSector } // ClearCache -func ClearCache(sectorSize uint64, cacheDirPath string) error { - return cgo.ClearCache(sectorSize, cgo.AsSliceRefUint8([]byte(cacheDirPath))) +func ClearCache(cacheDirPath string) error { + return cgo.ClearCache(cgo.AsSliceRefUint8([]byte(cacheDirPath))) } // ClearSyntheticProofs -func ClearSyntheticProofs(sectorSize uint64, cacheDirPath string) error { - return cgo.ClearSyntheticProofs(sectorSize, cgo.AsSliceRefUint8([]byte(cacheDirPath))) +func ClearSyntheticProofs(cacheDirPath string) error { + return cgo.ClearSyntheticProofs(cgo.AsSliceRefUint8([]byte(cacheDirPath))) } func GenerateSynthProofs( diff --git a/rust/src/proofs/api.rs b/rust/src/proofs/api.rs index 802875d9..95e58692 100644 --- a/rust/src/proofs/api.rs +++ b/rust/src/proofs/api.rs @@ -1221,7 +1221,6 @@ fn generate_data_commitment( #[ffi_export] fn clear_cache( - _sector_size: u64, cache_dir_path: c_slice::Ref<'_, u8>, ) -> repr_c::Box { catch_panic_response("clear_cache", || { @@ -1231,7 +1230,6 @@ fn clear_cache( #[ffi_export] fn clear_synthetic_proofs( - _sector_size: u64, cache_dir_path: c_slice::Ref<'_, u8>, ) -> repr_c::Box { catch_panic_response("clear_synthetic_proofs", || { @@ -1871,9 +1869,6 @@ pub mod tests { destroy_generate_synth_proofs_response(resp_p1); let resp_clear = clear_cache( - api::RegisteredSealProof::from(registered_proof_seal) - .sector_size() - .0, cache_dir_path_ref.into(), ); if resp_clear.status_code != FCPResponseStatus::NoError { @@ -1900,9 +1895,6 @@ pub mod tests { if registered_proof_seal == RegisteredSealProof::StackedDrg2KiBV1_1_Feat_SyntheticPoRep { let resp_clear = clear_synthetic_proofs( - api::RegisteredSealProof::from(registered_proof_seal) - .sector_size() - .0, cache_dir_path_ref.into(), ); if resp_clear.status_code != FCPResponseStatus::NoError { @@ -2230,9 +2222,6 @@ pub mod tests { } let resp_clear = clear_cache( - api::RegisteredSealProof::from(registered_proof_seal) - .sector_size() - .0, cache_dir_path_ref.into(), ); if resp_clear.status_code != FCPResponseStatus::NoError { From 82f8874564cd03604b9851ba1bc9089d1d05198c Mon Sep 17 00:00:00 2001 From: Phi Date: Wed, 13 Aug 2025 10:11:56 +0200 Subject: [PATCH 5/5] chore: rustfmt chore: rustfmt --- rust/src/proofs/api.rs | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/rust/src/proofs/api.rs b/rust/src/proofs/api.rs index 95e58692..7b0a686e 100644 --- a/rust/src/proofs/api.rs +++ b/rust/src/proofs/api.rs @@ -1220,18 +1220,14 @@ fn generate_data_commitment( } #[ffi_export] -fn clear_cache( - cache_dir_path: c_slice::Ref<'_, u8>, -) -> repr_c::Box { +fn clear_cache(cache_dir_path: c_slice::Ref<'_, u8>) -> repr_c::Box { catch_panic_response("clear_cache", || { seal::clear_cache(&as_path_buf(&cache_dir_path)?) }) } #[ffi_export] -fn clear_synthetic_proofs( - cache_dir_path: c_slice::Ref<'_, u8>, -) -> repr_c::Box { +fn clear_synthetic_proofs(cache_dir_path: c_slice::Ref<'_, u8>) -> repr_c::Box { catch_panic_response("clear_synthetic_proofs", || { seal::clear_synthetic_proofs(&as_path_buf(&cache_dir_path)?) }) @@ -1868,9 +1864,7 @@ pub mod tests { destroy_generate_synth_proofs_response(resp_p1); - let resp_clear = clear_cache( - cache_dir_path_ref.into(), - ); + let resp_clear = clear_cache(cache_dir_path_ref.into()); if resp_clear.status_code != FCPResponseStatus::NoError { let msg = str::from_utf8(&resp_clear.error_msg).unwrap(); panic!("clear_cache failed: {:?}", msg); @@ -1894,9 +1888,7 @@ pub mod tests { // If we're using SyntheticPoRep -- remove the persisted synthetic proofs here. if registered_proof_seal == RegisteredSealProof::StackedDrg2KiBV1_1_Feat_SyntheticPoRep { - let resp_clear = clear_synthetic_proofs( - cache_dir_path_ref.into(), - ); + let resp_clear = clear_synthetic_proofs(cache_dir_path_ref.into()); if resp_clear.status_code != FCPResponseStatus::NoError { let msg = str::from_utf8(&resp_clear.error_msg).unwrap(); panic!("clear_synthetic_proofs failed: {:?}", msg); @@ -2221,9 +2213,7 @@ pub mod tests { panic!("empty_sector_update_remove_encoded_data failed: {:?}", msg); } - let resp_clear = clear_cache( - cache_dir_path_ref.into(), - ); + let resp_clear = clear_cache(cache_dir_path_ref.into()); if resp_clear.status_code != FCPResponseStatus::NoError { let msg = str::from_utf8(&resp_clear.error_msg).unwrap(); panic!("clear_synthetic_proofs failed: {:?}", msg);