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
I don't believe my proposal is related to that. I don't want to return the writer, in fact, the proposed body of write forbids T ever being W or &mut W since bits is moved out of the writer for register.set, no?
Moved from
stm32-rs-nightlies
I ran into an issue when writing to a register where I wanted to return a value from the write, like this:
But, the signature of
write
forbids this:So I'm curious, why not change the signature to:
By implementing it like this:
Is there a drawback to this?
The text was updated successfully, but these errors were encountered: