CryZe / livesplit-one-druid

👀
8 stars 3 forks source link

Linux - hotkey::linux::Message does not implement Sync #1

Closed Eein closed 1 year ago

Eein commented 1 year ago
error[E0277]: `std::sync::mpsc::Sender<hotkey::linux::Message>` cannot be shared between threads safely
  --> src/main.rs:39:23
   |
39 | static HOTKEY_SYSTEM: RwLock<Option<HotkeySystem>> = RwLock::new(None);
   |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `std::sync::mpsc::Sender<hotkey::linux::Message>` cannot be shared between threads safely
   |
   = help: within `std::option::Option<HotkeySystem>`, the trait `Sync` is not implemented for `std::sync::mpsc::Sender<hotkey::linux::Message>`
   = note: required because it appears within the type `Hook`
   = note: required because it appears within the type `HotkeySystem`
   = note: required because it appears within the type `std::option::Option<HotkeySystem>`
   = note: required for `RwLock<std::option::Option<HotkeySystem>>` to implement `Sync`
   = note: shared static variables must have a type that implements `Sync`

Attempted an initial build of the druid app, and received this

Eein commented 1 year ago

Nevermind - pulled lsc master and it works