diff --git a/bin/domain/imag-log/src/main.rs b/bin/domain/imag-log/src/main.rs index c352322f..85164ab9 100644 --- a/bin/domain/imag-log/src/main.rs +++ b/bin/domain/imag-log/src/main.rs @@ -242,8 +242,7 @@ fn get_diary_name(rt: &Runtime) -> String { .map(Value::as_str) .map(Option::unwrap) // safe by map from above .map(String::from) - .filter(|log| log == ¤t_log) - .next() + .find(|log| log == ¤t_log) .is_none() { error!("'log.logs' does not contain 'log.default'");