Skip to content

Commit

Permalink
use join instead of with_file_name
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Whitehead <[email protected]>
  • Loading branch information
andrewwhitehead committed Jun 29, 2023
1 parent ceaf52a commit 7b67b09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indy-credx/src/services/tails.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ impl TailsWriter for TailsFileWriter {
.map_err(|e| err_msg!("Error flushing output file: {e}"))?;
let tails_size = file.seek(SeekFrom::Current(0))?;
let hash = base58::encode(hasher.finalize());
let target_path = self.root_path.with_file_name(&hash);
let target_path = self.root_path.join(&hash);
drop(file);
temp_handle.rename(&target_path)?;
let target_path = target_path.to_string_lossy().into_owned();
Expand Down

0 comments on commit 7b67b09

Please sign in to comment.