mirror of
https://github.com/yuzu-emu/liftinstall.git
synced 2024-12-22 19:25:40 +00: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 a new issue