removed some unneccassary clone() calls

This commit is contained in:
euzu
2023-10-17 09:03:37 +02:00
parent 66287da59a
commit 9f03377b19
6 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -32,14 +32,14 @@ pub(crate) fn process_group_watch(cfg: &Config, target_name: &str, pl: &Playlist
}
}
None => {
error!("failed to load watch_file {}", &path.into_os_string().into_string().unwrap());
error!("failed to load watch_file {}", &path.to_str().unwrap());
}
}
}
match save_tree(&save_path, new_tree) {
Ok(_) => {}
Err(err) => {
error!("failed to write watch_file {}: {}", &save_path.into_os_string().into_string().unwrap(), err)
error!("failed to write watch_file {}: {}", &save_path.to_str().unwrap(), err)
}
}
}