Skip to content

Update Cargo.toml

Update Cargo.toml #117

GitHub Actions / Clippy Report succeeded Nov 23, 2024 in 0s

Clippy Report

1 warning

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 1
Note 0
Help 0

Versions

  • rustc 1.82.0 (f6e511eec 2024-10-15)
  • cargo 1.82.0 (8f40fc59f 2024-08-21)
  • clippy 0.1.82 (f6e511e 2024-10-15)

Annotations

Check warning on line 113 in client/src/wasm_websocket.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Report

usage of an `Arc` that is not `Send` and `Sync`

warning: usage of an `Arc` that is not `Send` and `Sync`
   --> client/src/wasm_websocket.rs:113:24
    |
113 |         let ready_tx = Arc::new(RefCell::new(Some(ready_tx)));
    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `Arc<RefCell<Option<Sender<()>>>>` is not `Send` and `Sync` as `RefCell<Option<Sender<()>>>` is not `Sync`
    = help: if the `Arc` will not used be across threads replace it with an `Rc`
    = help: otherwise make `RefCell<Option<Sender<()>>>` `Send` and `Sync` or consider a wrapper type such as `Mutex`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#arc_with_non_send_sync
    = note: `#[warn(clippy::arc_with_non_send_sync)]` on by default