You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That only works when not using std::sync::mpsc::Sender:
$ cargo test -p notify --no-default-features
Compiling notify v6.0.1 (notify/notify)
error[E0277]: `std::sync::mpsc::Sender<EventLoopMsg>` cannot be shared between threads safely
--> notify/src/inotify.rs:570:13
|
570 | check::<INotifyWatcher>();
| ^^^^^^^^^^^^^^ `std::sync::mpsc::Sender<EventLoopMsg>` cannot be shared between threads safely
|
= help: within `INotifyWatcher`, the trait `Sync` is not implemented for `std::sync::mpsc::Sender<EventLoopMsg>`
note: required because it appears within the type `INotifyWatcher`
--> notify/src/inotify.rs:45:12
|
45 | pub struct INotifyWatcher {
| ^^^^^^^^^^^^^^
note: required by a bound in `inotify::inotify_watcher_is_send_and_sync::check`
--> notify/src/inotify.rs:569:24
|
569 | fn check<T: Send + Sync>() {}
| ^^^^ required by this bound in `inotify::inotify_watcher_is_send_and_sync::check`
For more information about this error, try `rustc --explain E0277`.
error: could not compile `notify` due to previous error
The text was updated successfully, but these errors were encountered:
Originally posted by @erickt in #336 (comment)
That only works when not using
std::sync::mpsc::Sender
:The text was updated successfully, but these errors were encountered: