Avril 4 years ago
parent 9dbaa04263
commit 5007654e26
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -325,16 +325,18 @@ pub fn watch(path: impl AsRef<Path>) -> Oneesan
}), }),
handle, handle,
}; };
output output
} }
/// Some predefined filter functions
pub mod filter pub mod filter
{ {
use super::*; use super::*;
#[inline(always)] #[inline(always)]
const fn all(_: &Event) -> bool {true} const fn all(_: &Event) -> bool {true}
/// Empty filter, accept all
pub const ALL: Option<fn (&Event) -> bool> = None; pub const ALL: Option<fn (&Event) -> bool> = None;
} }

Loading…
Cancel
Save