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 / cli failed Sep 4, 2023 in 0s

cli

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 454 in src/interface/rust.rs

See this annotation in the file changed.

@github-actions github-actions / cli

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

error: usage of an `Arc` that is not `Send` or `Sync`
   --> src/interface/rust.rs:454:19
    |
454 |     let process = Arc::new(Mutex::new(child));
    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: the trait `Send` is not implemented for `Mutex<Box<dyn DevProcess>>`
    = note: the trait `Sync` is not implemented for `Mutex<Box<dyn DevProcess>>`
    = note: required for `Arc<Mutex<Box<dyn DevProcess>>>` 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`

Check failure on line 454 in src/interface/rust.rs

See this annotation in the file changed.

@github-actions github-actions / cli

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

error: usage of an `Arc` that is not `Send` or `Sync`
   --> src/interface/rust.rs:454:19
    |
454 |     let process = Arc::new(Mutex::new(child));
    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: the trait `Send` is not implemented for `Mutex<Box<dyn DevProcess>>`
    = note: the trait `Sync` is not implemented for `Mutex<Box<dyn DevProcess>>`
    = note: required for `Arc<Mutex<Box<dyn DevProcess>>>` 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`