We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d2bd691 + 4801537 commit 9f8941bCopy full SHA for 9f8941b
crates/volta-core/src/layout/mod.rs
@@ -53,10 +53,10 @@ pub fn volta_install<'a>() -> Fallible<&'a VoltaInstall> {
53
/// actual binary files
54
fn default_install_dir() -> Fallible<PathBuf> {
55
env::current_exe()
56
+ .and_then(canonicalize)
57
.map(|mut path| {
58
path.pop(); // Remove the executable name from the path
59
path
60
})
- .and_then(canonicalize)
61
.with_context(|| ErrorKind::NoInstallDir)
62
}
0 commit comments