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();
|
let args = Args::parse();
|
||||||
|
|
||||||
#[cfg(not(windows))]
|
#[cfg(not(windows))]
|
||||||
let boot_folder = args
|
let boot_folder = unsafe {
|
||||||
.boot_directory
|
args.boot_directory
|
||||||
.or_else(|| PathBuf::from_str(BOOT_PATH).ok());
|
.or_else(|| PathBuf::from_str(BOOT_PATH).ok())
|
||||||
|
.unwrap_unchecked()
|
||||||
#[cfg(not(windows))]
|
};
|
||||||
let boot_folder = unsafe { boot_folder.unwrap_unchecked() };
|
|
||||||
|
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
let boot_folder = {
|
let boot_folder = {
|
||||||
|
|
Loading…
Reference in a new issue