Remove unnecessary .as_str() calls
This commit is contained in:
parent
4bad0eef9b
commit
c0d20759a1
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue