mirror of
https://github.com/talwat/lowfi
synced 2025-03-12 16:12:22 +00:00
chore: add actual reason for sendableoutputstream allowing non send fields
This commit is contained in:
parent
ece88de1ae
commit
f0123fd2bc
@ -86,7 +86,7 @@ pub struct SendableOutputStream(pub rodio::OutputStream);
|
||||
// SAFETY: This is necessary because [OutputStream] does not implement [Send],
|
||||
// due to some limitation with Android's Audio API.
|
||||
// I'm pretty sure nobody will use lowfi with android, so this is safe.
|
||||
#[expect(clippy::non_send_fields_in_send_ty, reason = "yes")]
|
||||
#[expect(clippy::non_send_fields_in_send_ty, reason = "this is expected because of the nature of the struct")]
|
||||
unsafe impl Send for SendableOutputStream {}
|
||||
|
||||
/// Initializes the audio server, and then safely stops
|
||||
|
Loading…
x
Reference in New Issue
Block a user