-
Notifications
You must be signed in to change notification settings - Fork 14
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
Inconsistent mutability between WriteChunkUninit::producer
and ReadChunk::consumer
#79
Comments
Do you know that #80 and #81 is conflicting? |
Oh, did you take that one? |
I think this is a matter of taste, the generated machine code should be the same in both cases, right? My argumentation for choosing #81 was: Also, I haven't yet completely given up on #48, which would also not need But if you have a good reason for #80, we can still make the change! |
WriteChunkUninit::producer
is typed as&'a Producer<T>
.But
ReadChunk::consumer
is typed as&'a mut Consumer<T>
.With current code, switching their mutability never makes compiler error.
But inconsistent mutability between them seems to be weird.
So I think we should mark both of them as
mut
or both of them as notmut
.The text was updated successfully, but these errors were encountered: