mirror of
https://github.com/yuzu-emu/liftinstall.git
synced 2024-11-22 11:45:41 +01:00
installer: Use an inline expression for is_windows
Co-authored-by: liushuyu <liushuyu011@gmail.com>
This commit is contained in:
parent
e6600e3b17
commit
8c795396eb
@ -454,10 +454,7 @@ impl InstallerFramework {
|
||||
is_launcher: false,
|
||||
burn_after_exit: false,
|
||||
launcher_path: None,
|
||||
#[cfg(windows)]
|
||||
is_windows: true,
|
||||
#[cfg(not(windows))]
|
||||
is_windows: false,
|
||||
is_windows: cfg!(windows),
|
||||
}
|
||||
}
|
||||
|
||||
@ -485,10 +482,7 @@ impl InstallerFramework {
|
||||
is_launcher: false,
|
||||
burn_after_exit: false,
|
||||
launcher_path: None,
|
||||
#[cfg(windows)]
|
||||
is_windows: true,
|
||||
#[cfg(not(windows))]
|
||||
is_windows: false,
|
||||
is_windows: cfg!(windows),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user