Skip to content

Commit d79f32b

Browse files
Fix warning when configuring /recompress
Ref: #215
1 parent 7855941 commit d79f32b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/setup.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ pub fn run_device_setup(device: Option<Device>, device_name: &str) -> Result<()>
6767
match fs::write(&path, data) {
6868
Ok(_) => {
6969
if let Some((add_path, add_data)) = add_pathdata {
70-
match fs::write(add_path, add_data) {
70+
match fs::write(add_path, &add_data) {
7171
Ok(_) => {}
7272
Err(err) => {
7373
warn!(
74-
"Warning: algorithm {algo:?} supplemental data {data:?} not written: {err}",
74+
"Warning: algorithm {algo:?} supplemental data {add_data:?} not written: {err}",
7575
);
7676
}
7777
}

0 commit comments

Comments
 (0)