commit 60739657061ba0a6aac71832ff4d0a91401e6f03
parent e8d87a3cd57cfdd700f6ef5adf60847e801fe3fc
Author: KeiSu <h1130189083@hotmail.com>
Date: Wed, 3 Apr 2024 16:51:51 -0500
Fixed temp file auto delete (#438)
Fix temp file auto delete
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sdk/src/store.rs b/sdk/src/store.rs
@@ -2128,7 +2128,7 @@ impl Store {
) -> Result<Vec<u8>> {
// set up temp dir, contents auto deleted
let td = tempfile::TempDir::new()?;
- let temp_path = td.into_path();
+ let temp_path = td.path();
let temp_file = temp_path.join(
dest_path
.file_name()
@@ -2183,7 +2183,7 @@ impl Store {
) -> Result<Vec<u8>> {
// set up temp dir, contents auto deleted
let td = tempfile::TempDir::new()?;
- let temp_path = td.into_path();
+ let temp_path = td.path();
let temp_file = temp_path.join(
dest_path
.file_name()
@@ -2240,7 +2240,7 @@ impl Store {
) -> Result<Vec<u8>> {
// set up temp dir, contents auto deleted
let td = tempfile::TempDir::new()?;
- let temp_path = td.into_path();
+ let temp_path = td.path();
let temp_file = temp_path.join(
dest_path
.file_name()