mirror of https://github.com/wayvr-org/wayvr.git
chore: clippy
This commit is contained in:
parent
78b51179ee
commit
944b7c1835
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue