remove redundant clones
This commit is contained in:
parent
e276eb950d
commit
6a730ed70c
|
@ -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(())
|
||||
|
|
Loading…
Reference in a new issue