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