chore: clippy
This commit is contained in:
@@ -325,20 +325,16 @@ pub fn load_general() -> GeneralConfig {
|
||||
}
|
||||
|
||||
match settings_builder.build() {
|
||||
Ok(settings) => {
|
||||
match settings.try_deserialize::<GeneralConfig>() {
|
||||
Ok(config) => {
|
||||
return config;
|
||||
}
|
||||
Ok(settings) => match settings.try_deserialize::<GeneralConfig>() {
|
||||
Ok(config) => config,
|
||||
Err(e) => {
|
||||
panic!("Failed to deserialize settings: {}", e);
|
||||
}
|
||||
};
|
||||
}
|
||||
},
|
||||
Err(e) => {
|
||||
panic!("Failed to build settings: {}", e);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
// Config that is saved from the settings panel
|
||||
|
||||
Reference in New Issue
Block a user