Skip to content

Commit 2a958c7

Browse files
Fix warning when configuring /recompress
Ref: #215
1 parent c16f4dd commit 2a958c7

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,12 +67,12 @@ 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!(
7474
"Warning: algorithm {:?} supplemental data {:?} not written: {}",
75-
algo, data, err,
75+
algo, add_data, err,
7676
);
7777
}
7878
}

0 commit comments

Comments
 (0)