Skip to content

Relax the mutable borrow requirements on channel_f32 for BufferVec/BufferArray - #97

Open
DJ-Huntress wants to merge 1 commit into
SamiPerttu:masterfrom
DJ-Huntress:master
Open

DJ-Huntress wants to merge 1 commit into
SamiPerttu:masterfrom
DJ-Huntress:master

Conversation

@DJ-Huntress

Copy link
Copy Markdown

The safety on BufferRef/BufferMut's channel_f32 (which uses exactly the same code) only requires a shared borrow, so there's no reason that I can see or am aware of that requires an exclusive borrow on BufferVec/BufferArray.

…c/BufferArray - the soundness guarantees are the same as on BufferMut/BufferRef which use &self already

Add the debug assert for channels to BufferArray as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant