single scope again
This commit is contained in:
parent
c290afca3a
commit
b3946f9131
1 changed files with 5 additions and 6 deletions
11
src/main.rs
11
src/main.rs
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue