You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 21, 2020. It is now read-only.
Pretty unusual from the looks of it, seems to be a nightly regression?
allen@harumi ~/Projects/http-service master cargo build
Compiling http-service v0.2.0 (/home/allen/Projects/http-service)
error[E0596]: cannot borrow `self` as mutable, as it is not declared as mutable
--> src/lib.rs:102:40
|
100 | pub async fn into_vec(mut self) -> std::io::Result<Vec<u8>> {
| -------- help: consider changing this to be mutable: `mut self`
101 | let mut bytes = Vec::new();
102 | while let Some(chunk) = await!(self.next()) {
| ^^^^ cannot borrow as mutable
warning: variable does not need to be mutable
--> src/lib.rs:100:27
|
100 | pub async fn into_vec(mut self) -> std::io::Result<Vec<u8>> {
| ----^^^^
| |
| help: remove this `mut`
|
= note: #[warn(unused_mut)] on by default
error: aborting due to previous error
For more information about this error, try `rustc --explain E0596`.
error: Could not compile `http-service`.
To learn more, run the command again with --verbose.
Something goes weird when trying to consume mut self, perhaps related to async?
Will install an earlier version of nightly to make sure stuff works, but just wanted to share since this breaks Tide and other related crates.
The text was updated successfully, but these errors were encountered:
Pretty unusual from the looks of it, seems to be a nightly regression?
Something goes weird when trying to consume
mut self
, perhaps related to async?Will install an earlier version of nightly to make sure stuff works, but just wanted to share since this breaks Tide and other related crates.
The text was updated successfully, but these errors were encountered: