Clean up codebase, use patch in hddtemp Nix store path #1

Merged
Nickiel merged 9 commits from ElnuDev/nicks_nextcloud_integrations:main into main 2023-08-26 12:46:03 -07:00
Showing only changes of commit c0d20759a1 - Show all commits

View file

@ -33,7 +33,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
}
};
let cfg: Config = match toml::from_str(file_contents.as_str()) {
let cfg: Config = match toml::from_str(&file_contents) {
Ok(val) => val,
Err(e) => {
error!("Could not parse config file: {e}");
@ -87,7 +87,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
}
}
body_content.push_str("## Hard Drive Temps\n");
body_content.push_str(drive_temps.join("\n").as_str());
body_content.push_str(&drive_temps.join("\n"));
}
Client::new()