notify-rs / notify

🔭 Cross-platform filesystem notification library for Rust.
https://docs.rs/notify
2.76k stars 222 forks source link

Preserve IO errors in `PollWatcher` #634

Closed samuelcolvin closed 1 month ago

samuelcolvin commented 2 months ago

Part of solving #581.

In order to successfully process io::Errors in watchfiles, we need to preserve them as ErrorKind::IO, rather than using ErrorKind::Generic.