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() {
Ok(settings) => {
match settings.try_deserialize::<GeneralConfig>() {
Ok(config) => {
return config;
}
Err(e) => {
panic!("Failed to deserialize settings: {}", e);
}
};
}
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