mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-21 13:08:42 +00:00
Fix syntax
This commit is contained in:
parent
f2905dd46e
commit
7ce1ac4ee6
1 changed files with 1 additions and 6 deletions
|
@ -193,17 +193,12 @@ pub fn get_install_path<P: AsRef<Path>>(install_path: Option<P>) -> Option<PathB
|
||||||
|
|
||||||
// Local executable dir if no cargo is found
|
// Local executable dir if no cargo is found
|
||||||
let dir = dirs::executable_dir();
|
let dir = dirs::executable_dir();
|
||||||
|
|
||||||
if let Some(d) = &dir {
|
if let Some(d) = &dir {
|
||||||
debug!("Fallback to {}", d.display());
|
debug!("Fallback to {}", d.display());
|
||||||
}
|
}
|
||||||
|
|
||||||
dir
|
dir
|
||||||
debug!("Fallback to {}", d.display());
|
|
||||||
return Some(d);
|
|
||||||
}
|
|
||||||
|
|
||||||
None
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn confirm() -> Result<(), BinstallError> {
|
pub fn confirm() -> Result<(), BinstallError> {
|
||||||
|
|
Loading…
Add table
Reference in a new issue