We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mut tx
The borrow checker does not seem happy as is.
error[E0596]: cannot borrow immutable local variable `rx` as mutable --> src/main.rs:30:21 | 27 | let Serial { tx, rx } = Serial::new().unwrap(); | -- consider changing this to `mut rx` ... 30 | let mut bytes = rx.bytes(); | ^^ cannot borrow mutably error[E0596]: cannot borrow immutable local variable `tx` as mutable --> src/main.rs:45:13 | 27 | let Serial { tx, rx } = Serial::new().unwrap(); | -- consider changing this to `mut tx` ... 45 | tx.write(byte).wait(); | ^^ cannot borrow mutably error: aborting due to 2 previous errors error: Could not compile `async`. To learn more, run the command again with --verbose.
The text was updated successfully, but these errors were encountered:
Requires mutable references.
f521aa6
The borrow checker would like mutable references. Closes rust-embedded#57.
Auto merge of #58 - cldershem:patch-7, r=japaric
65ce31e
Requires mutable references. The borrow checker would like mutable references. Closes #57.
No branches or pull requests
The borrow checker does not seem happy as is.
The text was updated successfully, but these errors were encountered: