installer: Use an inline expression for is_windows

Co-authored-by: liushuyu <liushuyu011@gmail.com>
This commit is contained in:
lat9nq 2022-07-28 16:47:42 -04:00 committed by lat9nq
parent e6600e3b17
commit 8c795396eb

View file

@ -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),
})
}
}