Fix syntax

This commit is contained in:
Félix Saparelli 2022-06-01 01:00:33 +12:00
parent f2905dd46e
commit 7ce1ac4ee6
No known key found for this signature in database
GPG key ID: B948C4BAE44FC474

View file

@ -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> {