aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib.rs17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/lib.rs b/src/lib.rs
index cd483da..c9f1ec1 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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()
}
}