mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
Use defaultconfig instead of default on structs
This commit is contained in:
@@ -6,24 +6,4 @@ pub struct EpicGamesLauncherSettings {
|
||||
pub location: Option<String>,
|
||||
}
|
||||
|
||||
impl Default for EpicGamesLauncherSettings {
|
||||
fn default() -> Self {
|
||||
|
||||
// On windows
|
||||
// Even if no path is given, we can try to guess, so lets enable by default
|
||||
#[cfg(target_os = "windows")]
|
||||
let enabled = true;
|
||||
|
||||
|
||||
// On linux
|
||||
// We can not guess, so lets not enable by default
|
||||
#[cfg(target_os = "linux")]
|
||||
let enabled = false;
|
||||
|
||||
EpicGamesLauncherSettings {
|
||||
enabled,
|
||||
location: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user