Skip to content

Commit 0116b28

Browse files
galarghvmx
andauthored
chore: fix Clippy warnings (#1777)
On a fresh checkout, there's no a warning on some `tempfile` usage. This commit fixes it. Co-authored-by: Volker Mische <[email protected]>
1 parent 8e96f1d commit 0116b28

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fil-proofs-param/tests/support/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ pub fn tmp_manifest(
8888
opt_manifest: Option<BTreeMap<String, ParameterData>>,
8989
) -> Result<PathBuf, failure::Error> {
9090
let manifest_dir = tempdir()?;
91-
let mut pbuf = manifest_dir.into_path();
91+
let mut pbuf = manifest_dir.keep();
9292
pbuf.push("parameters.json");
9393

9494
let mut file = File::create(&pbuf)?;

fil-proofs-tooling/src/shared.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ pub fn create_replicas<Tree: 'static + MerkleTreeTrait>(
303303
PrivateReplicaInfo::new(
304304
sealed_file.to_path_buf(),
305305
seal_pre_commit_output.comm_r,
306-
cache_dir.into_path(),
306+
cache_dir.keep(),
307307
)
308308
.expect("failed to create PrivateReplicaInfo")
309309
});

0 commit comments

Comments
 (0)