single scope again

main
Zynh0722 2024-05-15 05:18:34 -07:00
parent c290afca3a
commit b3946f9131
1 changed files with 5 additions and 6 deletions

View File

@ -29,12 +29,11 @@ fn main() -> Result<(), Box<dyn Error>> {
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 = {