mirror of
https://github.com/yuzu-emu/liftinstall.git
synced 2024-11-25 16:55:37 +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,
|
is_launcher: false,
|
||||||
burn_after_exit: false,
|
burn_after_exit: false,
|
||||||
launcher_path: None,
|
launcher_path: None,
|
||||||
#[cfg(windows)]
|
is_windows: cfg!(windows),
|
||||||
is_windows: true,
|
|
||||||
#[cfg(not(windows))]
|
|
||||||
is_windows: false,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -485,10 +482,7 @@ impl InstallerFramework {
|
|||||||
is_launcher: false,
|
is_launcher: false,
|
||||||
burn_after_exit: false,
|
burn_after_exit: false,
|
||||||
launcher_path: None,
|
launcher_path: None,
|
||||||
#[cfg(windows)]
|
is_windows: cfg!(windows),
|
||||||
is_windows: true,
|
|
||||||
#[cfg(not(windows))]
|
|
||||||
is_windows: false,
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user