cargo fmt

This commit is contained in:
Vukašin Vojinović 2025-10-16 16:10:35 +02:00 committed by Victoria Brekenfeld
parent 5e9ea93819
commit b6c5d00bec
17 changed files with 264 additions and 277 deletions

View file

@ -92,7 +92,9 @@ pub fn get_config<'a, T: 'a, F: Fn(&'a InputConfig) -> Option<T>>(
) -> Option<(T, bool)> {
if let Some(setting) = device_config.and_then(&f) {
Some((setting, false))
} else { f(default_config).map(|setting| (setting, true)) }
} else {
f(default_config).map(|setting| (setting, true))
}
}
fn config_set_error<T: std::fmt::Debug>(