Skip to content

Commit

Permalink
Fix warning when configuring /recompress
Browse files Browse the repository at this point in the history
  • Loading branch information
nabijaczleweli committed Dec 13, 2024
1 parent c2685d1 commit 5ef051d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ pub fn run_device_setup(device: Option<Device>, device_name: &str) -> Result<()>
match fs::write(&path, data) {
Ok(_) => {
if let Some((add_path, add_data)) = add_pathdata {
match fs::write(add_path, add_data) {
match fs::write(add_path, &add_data) {
Ok(_) => {}
Err(err) => {
warn!(
"Warning: algorithm {:?} supplemental data {:?} not written: {}",
algo, data, err,
algo, add_data, err,
);
}
}
Expand Down

0 comments on commit 5ef051d

Please sign in to comment.