aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2020-08-17 14:56:31 +0200
committerDaniel Schadt <kingdread@gmx.de>2020-08-17 14:56:31 +0200
commita9a94161495718a2eb7bca8169671ecd0db72c9f (patch)
treebc1f0cff087e2122cdacce75b239f523617d350a /src
parent86fc78ac5fcf500cd19a1d791986548b0f3b6f5a (diff)
downloadevtclib-a9a94161495718a2eb7bca8169671ecd0db72c9f.tar.gz
evtclib-a9a94161495718a2eb7bca8169671ecd0db72c9f.tar.bz2
evtclib-a9a94161495718a2eb7bca8169671ecd0db72c9f.zip
fix formattingv0.4.1
Diffstat (limited to 'src')
-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()
}
}