Skip to content

Commit

Permalink
examples/linux-inotify.rs: Fix usage of function deprecated in inotif…
Browse files Browse the repository at this point in the history
…y 0.10.1
  • Loading branch information
joshtriplett committed Jun 12, 2023
1 parent a0e05c3 commit 80774ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/linux-inotify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fn main() -> std::io::Result<()> {
future::block_on(async {
// Watch events in the current directory.
let mut inotify = Async::new(Inotify::init()?)?;
inotify.get_mut().add_watch(".", WatchMask::ALL_EVENTS)?;
inotify.get_mut().watches().add(".", WatchMask::ALL_EVENTS)?;
println!("Watching for filesystem events in the current directory...");
println!("Try opening a file to trigger some events.");
println!();
Expand Down

0 comments on commit 80774ea

Please sign in to comment.