chore: clippy

This commit is contained in:
galister
2024-04-10 08:38:19 +09:00
parent 78b51179ee
commit 944b7c1835

View File

@@ -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