Skip to content

Writable::Writer needs DerefMut trait bound #471

New issue

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

Merged
merged 1 commit into from
Sep 20, 2020

Conversation

couchand
Copy link
Contributor

Otherwise, a call to bits in the closure passed to write/modify in a function where the register is bound only on the Writable trait will fail to typecheck.

This only causes an issue for code written to be generic over a Writable register, so I suspect I'm the only one that's so far been bitten by the bug. In any case, apologies for shipping broken code!

Otherwise, a call to `bits` will fail to typecheck.
@couchand couchand requested a review from a team as a code owner September 20, 2020 04:26
@rust-highfive
Copy link

r? @burrbull

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-tools labels Sep 20, 2020
@burrbull
Copy link
Member

bors r+

@bors bors bot merged commit d6b0e77 into rust-embedded:master Sep 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants