Skip to content

Instantly share code, notes, and snippets.

@rainhead
Created January 16, 2019 05:44
Show Gist options
  • Save rainhead/44c1a51fa1b3e715225bf853e09a8254 to your computer and use it in GitHub Desktop.
Save rainhead/44c1a51fa1b3e715225bf853e09a8254 to your computer and use it in GitHub Desktop.
error[E0507]: cannot move out of borrowed content
--> src/main.rs:67:26
|
67 | let mut vv = *views.borrow_mut();
| ^^^^^^^^^^^^^^^^^^^
| |
| cannot move out of borrowed content
| help: consider removing the `*`: `views.borrow_mut()`
error[E0507]: cannot move out of data in a `&` reference
--> src/main.rs:67:26
|
67 | let mut vv = *views.borrow_mut();
| ^^^^^^^^^^^^^^^^^^^
| |
| cannot move out of data in a `&` reference
| cannot move
error[E0382]: use of moved value: `msg`
--> src/main.rs:69:29
|
69 | view.update(msg);
| ^^^ value moved here, in previous iteration of loop
|
= note: move occurs because `msg` has type `warp::filters::ws::Message`, which does not implement the `Copy` trait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment