cargo fmt
This commit is contained in:
parent
5e9ea93819
commit
b6c5d00bec
17 changed files with 264 additions and 277 deletions
|
|
@ -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>(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue