summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflip1995 <hello@philkrones.com>2019-08-27 10:33:14 +0200
committerMatthias Beyer <mail@beyermatthias.de>2019-08-28 18:18:41 +0200
commit009539dfd3d37fc0d20114f742a551de22db5d08 (patch)
treea62b69589f54ba1480aeb0952d6439437299cf3d
parent3b941f23e3d4c55c080249f2ea9b1a417131b696 (diff)
[No-auto] bin/domain/log: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com> Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--bin/domain/imag-log/src/main.rs3
1 files changed, 1 insertions, 2 deletions
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 == &current_log)
- .next()
+ .find(|log| log == &current_log)
.is_none()
{
error!("'log.logs' does not contain 'log.default'");