From e3342b85f9fce4a0551e4ca6619920d6d2730be3 Mon Sep 17 00:00:00 2001 From: John Nunley Date: Tue, 31 Oct 2023 19:09:05 -0700 Subject: [PATCH] fmt Signed-off-by: John Nunley --- examples/linux-inotify.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/linux-inotify.rs b/examples/linux-inotify.rs index abbb760..3d86067 100644 --- a/examples/linux-inotify.rs +++ b/examples/linux-inotify.rs @@ -37,9 +37,7 @@ fn main() -> std::io::Result<()> { // Watch events in the current directory. let mut inotify = Inotify::init()?; let source = Async::new(inotify.as_fd().try_clone_to_owned()?)?; - inotify - .watches() - .add(".", WatchMask::ALL_EVENTS)?; + inotify.watches().add(".", WatchMask::ALL_EVENTS)?; println!("Watching for filesystem events in the current directory..."); println!("Try opening a file to trigger some events."); println!();