Skip to content

Commit

Permalink
der: fixup windows write_secret_file helper (#1372)
Browse files Browse the repository at this point in the history
This signature was missed in #1055
  • Loading branch information
baloo authored Mar 28, 2024
1 parent 64ca37f commit c03c066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion der/src/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ fn write_secret_file(path: impl AsRef<Path>, data: &[u8]) -> Result<(), Error> {
/// Write a file containing secret data to the filesystem
// TODO(tarcieri): permissions hardening on Windows
#[cfg(all(not(unix), feature = "std", feature = "zeroize"))]
fn write_secret_file(path: impl AsRef<Path>, data: &[u8]) -> Result<()> {
fn write_secret_file(path: impl AsRef<Path>, data: &[u8]) -> Result<(), Error> {
fs::write(path, data)?;
Ok(())
}

0 comments on commit c03c066

Please sign in to comment.