remove redundant clones

This commit is contained in:
Gered 2022-07-01 16:29:47 -04:00
parent e276eb950d
commit 6a730ed70c

View file

@ -91,7 +91,7 @@ impl AudioQueue {
Err(AudioDeviceError::AudioSpecMismatch)
} else {
self.commands.push_back(AudioCommand::PlayRcBuffer {
buffer: buffer.clone(),
buffer,
loops,
});
Ok(())
@ -131,7 +131,7 @@ impl AudioQueue {
} else {
self.commands.push_back(AudioCommand::PlayRcBufferOnChannel {
channel: channel_index,
buffer: buffer.clone(),
buffer,
loops,
});
Ok(())