diff --git a/src/main.rs b/src/main.rs index a37092a..a4e3332 100644 --- a/src/main.rs +++ b/src/main.rs @@ -29,12 +29,11 @@ fn main() -> Result<(), Box> { let args = Args::parse(); #[cfg(not(windows))] - let boot_folder = args - .boot_directory - .or_else(|| PathBuf::from_str(BOOT_PATH).ok()); - - #[cfg(not(windows))] - let boot_folder = unsafe { boot_folder.unwrap_unchecked() }; + let boot_folder = unsafe { + args.boot_directory + .or_else(|| PathBuf::from_str(BOOT_PATH).ok()) + .unwrap_unchecked() + }; #[cfg(windows)] let boot_folder = {