diff options
-rw-r--r-- | src/lib.rs | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -905,12 +905,15 @@ impl Log { /// Note that those are errors reported verbatim by arcdps, nothing that evtclib /// produces/interprets. pub fn errors(&self) -> Vec<&str> { - self.events().iter().filter_map(|e| { - if let EventKind::Error { ref text } = e.kind() { - Some(text as &str) - } else { - None - } - }).collect() + self.events() + .iter() + .filter_map(|e| { + if let EventKind::Error { ref text } = e.kind() { + Some(text as &str) + } else { + None + } + }) + .collect() } } |