remove redundant clones
This commit is contained in:
parent
e276eb950d
commit
6a730ed70c
|
@ -91,7 +91,7 @@ impl AudioQueue {
|
||||||
Err(AudioDeviceError::AudioSpecMismatch)
|
Err(AudioDeviceError::AudioSpecMismatch)
|
||||||
} else {
|
} else {
|
||||||
self.commands.push_back(AudioCommand::PlayRcBuffer {
|
self.commands.push_back(AudioCommand::PlayRcBuffer {
|
||||||
buffer: buffer.clone(),
|
buffer,
|
||||||
loops,
|
loops,
|
||||||
});
|
});
|
||||||
Ok(())
|
Ok(())
|
||||||
|
@ -131,7 +131,7 @@ impl AudioQueue {
|
||||||
} else {
|
} else {
|
||||||
self.commands.push_back(AudioCommand::PlayRcBufferOnChannel {
|
self.commands.push_back(AudioCommand::PlayRcBufferOnChannel {
|
||||||
channel: channel_index,
|
channel: channel_index,
|
||||||
buffer: buffer.clone(),
|
buffer,
|
||||||
loops,
|
loops,
|
||||||
});
|
});
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in a new issue