aboutsummaryrefslogtreecommitdiff
path: root/src/event.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/event.rs')
-rw-r--r--src/event.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/event.rs b/src/event.rs
index 558985e..71effba 100644
--- a/src/event.rs
+++ b/src/event.rs
@@ -219,11 +219,7 @@ impl Event {
return None
}
- CbtStateChange::None => if let Some(kind) = check_activation(raw_event) {
- kind
- } else {
- return None;
- },
+ CbtStateChange::None => check_activation(raw_event)?,
};
Some(Event {
time: raw_event.time,