Signed-off-by: John Nunley <dev@notgull.net>
This commit is contained in:
John Nunley 2023-10-31 19:09:05 -07:00
parent 4cb1825107
commit e3342b85f9
No known key found for this signature in database
GPG Key ID: F27A1BA748ECAED2
1 changed files with 1 additions and 3 deletions

View File

@ -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!();