From 99dc97a0925ee29e39515e188354ce6d7695aa1a Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Fri, 9 Nov 2018 11:27:46 -0800 Subject: [PATCH] Fix EventTrigger::none --- src/event.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/event.rs b/src/event.rs index 2fd8737..bd7c20a 100644 --- a/src/event.rs +++ b/src/event.rs @@ -74,7 +74,7 @@ impl EventTrigger { /// Returns an `EventTrigger` that doesn't accept any event. pub fn none() -> Self { - Self::from_fn(|_| true) + Self::from_fn(|_| false) } /// Returns an `EventTrigger` that applies if either `self` or `other` applies.