From 5007654e2608fc65179ac664ac5e042ba22f0b42 Mon Sep 17 00:00:00 2001 From: Avril Date: Fri, 7 Aug 2020 00:15:08 +0100 Subject: [PATCH] umm --- src/hot.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/hot.rs b/src/hot.rs index a745e3e..2940889 100644 --- a/src/hot.rs +++ b/src/hot.rs @@ -325,16 +325,18 @@ pub fn watch(path: impl AsRef) -> Oneesan }), handle, }; - output } +/// Some predefined filter functions pub mod filter { use super::*; - + #[inline(always)] const fn all(_: &Event) -> bool {true} + + /// Empty filter, accept all pub const ALL: Option bool> = None; }