Skip to content

perf: remove unnecessary heap allocation (#7731) #560

perf: remove unnecessary heap allocation (#7731)

perf: remove unnecessary heap allocation (#7731) #560

GitHub Actions / custom-protocol failed Sep 4, 2023 in 0s

custom-protocol

2 errors

Details

Results

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

Versions

  • rustc 1.72.0 (5680fa18f 2023-08-23)
  • cargo 1.72.0 (103a7ff2e 2023-08-15)
  • clippy 0.1.72 (5680fa1 2023-08-23)

Annotations

Check failure on line 2806 in core/tauri-runtime-wry/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / custom-protocol

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

error: usage of an `Arc` that is not `Send` or `Sync`
    --> core/tauri-runtime-wry/src/lib.rs:2806:14
     |
2806 |       inner: Arc::new(webview),
     |              ^^^^^^^^^^^^^^^^^
     |
     = note: the trait `Send` is not implemented for `WebView`
     = note: the trait `Sync` is not implemented for `WebView`
     = note: required for `Arc<WebView>` to implement `Send` and `Sync`
     = help: consider using an `Rc` instead or wrapping the inner type with a `Mutex`
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#arc_with_non_send_sync

Check failure on line 1819 in core/tauri-runtime-wry/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / custom-protocol

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

error: usage of an `Arc` that is not `Send` or `Sync`
    --> core/tauri-runtime-wry/src/lib.rs:1819:19
     |
1819 |     let windows = Arc::new(RefCell::new(HashMap::default()));
     |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     |
     = note: the trait `Send` is not implemented for `RefCell<HashMap<u64, WindowWrapper>>`
     = note: the trait `Sync` is not implemented for `RefCell<HashMap<u64, WindowWrapper>>`
     = note: required for `Arc<RefCell<HashMap<u64, WindowWrapper>>>` to implement `Send` and `Sync`
     = help: consider using an `Rc` instead or wrapping the inner type with a `Mutex`
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#arc_with_non_send_sync
     = note: `-D clippy::arc-with-non-send-sync` implied by `-D warnings`