[No-auto] bin/domain/log: Fix Clippy warnings

Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
flip1995 2019-08-27 10:33:14 +02:00 committed by Matthias Beyer
parent 3b941f23e3
commit 009539dfd3

View file

@ -242,8 +242,7 @@ fn get_diary_name(rt: &Runtime) -> String {
.map(Value::as_str) .map(Value::as_str)
.map(Option::unwrap) // safe by map from above .map(Option::unwrap) // safe by map from above
.map(String::from) .map(String::from)
.filter(|log| log == &current_log) .find(|log| log == &current_log)
.next()
.is_none() .is_none()
{ {
error!("'log.logs' does not contain 'log.default'"); error!("'log.logs' does not contain 'log.default'");