Remove unnecessary .as_str() calls

pull/1/head
Elnu 1 year ago
parent 4bad0eef9b
commit c0d20759a1

@ -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, Ok(val) => val,
Err(e) => { Err(e) => {
error!("Could not parse config file: {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("## Hard Drive Temps\n");
body_content.push_str(drive_temps.join("\n").as_str()); body_content.push_str(&drive_temps.join("\n"));
} }
Client::new() Client::new()

Loading…
Cancel
Save