cargo install wimp fails with the following error:
error[E0507]: cannot move out of `*self` which is behind a shared reference
--> /home/cay/.cargo/registry/src/github.com-1ecc6299db9ec823/async-mutex-1.4.0/src/lib.rs:267:30
|
267 | if let Some(guard) = self.try_lock_arc() {
| ^^^^ move occurs because `*self` has type `std::sync::Arc<Mutex<T>>`, which does not implement the `Copy` trait
error[E0308]: mismatched types
--> /home/cay/.cargo/registry/src/github.com-1ecc6299db9ec823/async-mutex-1.4.0/src/lib.rs:410:9
|
409 | pub fn source(guard: &MutexGuardArc<T>) -> Arc<Mutex<T>> {
| ------------- expected `std::sync::Arc<Mutex<T>>` because of return type
410 | &guard.0
| ^^^^^^^^
| |
| expected struct `std::sync::Arc`, found reference
| help: consider removing the borrow: `guard.0`
|
= note: expected struct `std::sync::Arc<Mutex<T>>`
found reference `&std::sync::Arc<Mutex<T>>`
cargo install wimp
fails with the following error:I have rust/cargo version 1.46.0