Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rozhkovdmitrii committed Jul 12, 2023
1 parent fca8789 commit 400a99a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm2src/adex_cli/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::path::Path;

use crate::error_anyhow;

pub(crate) fn rewrite_data_file<T>(data: T, file: &str, unix_mode: Option<u32>) -> Result<()>
pub(crate) fn rewrite_data_file<T>(data: T, file: &str, _unix_mode: Option<u32>) -> Result<()>
where
T: Deref<Target = [u8]>,
{
Expand All @@ -25,7 +25,7 @@ where
.map_err(|error| error_anyhow!("Failed to write data into {file}: {error}"))?;

#[cfg(unix)]
if let Some(unix_mode) = unix_mode {
if let Some(unix_mode) = _unix_mode {
let mut perms = fs::metadata(file)?.permissions();
perms.set_mode(unix_mode);
fs::set_permissions(file, perms)?;
Expand Down

0 comments on commit 400a99a

Please sign in to comment.