mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-05 11:40:04 +00:00
Clippy suggestions
This commit is contained in:
parent
13a8e1e5fe
commit
ac74da4a27
6 changed files with 17 additions and 25 deletions
|
@ -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)?)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue