Clippy suggestions

This commit is contained in:
Félix Saparelli 2022-06-01 00:47:32 +12:00
parent 13a8e1e5fe
commit ac74da4a27
No known key found for this signature in database
GPG key ID: B948C4BAE44FC474
6 changed files with 17 additions and 25 deletions

View file

@ -194,7 +194,7 @@ pub fn get_install_path<P: AsRef<Path>>(install_path: Option<P>) -> Option<PathB
// Local executable dir if no cargo is found
if let Some(d) = dirs::executable_dir() {
debug!("Fallback to {}", d.display());
return Some(d.into());
return Some(d);
}
None
@ -226,7 +226,7 @@ pub trait Template: Serialize {
let mut tt = TinyTemplate::new();
// Add template to instance
tt.add_template("path", &template)?;
tt.add_template("path", template)?;
// Render output
Ok(tt.render("path", self)?)