Sebastian Thielthanks clippy6f009d71 year agoHistory
11 lines · 302 B · Rust
RawDownload
use std::path::PathBuf; pub use gix_path::*; pub(crate) fn install_dir() -> std::io::Result<PathBuf> {    std::env::current_exe().and_then(|exe| {        exe.parent()            .map(ToOwned::to_owned)            .ok_or_else(|| std::io::Error::other("no parent for current executable"))    })}