forked from M-Labs/artiq-zynq
remove unnecessary mut
This commit is contained in:
parent
96f9ad9893
commit
aa770463ca
@ -144,7 +144,7 @@ pub mod remote_dma {
|
|||||||
|
|
||||||
pub async fn playback_done(&mut self, source: u8, error: u8, channel: u32, timestamp: u64) {
|
pub async fn playback_done(&mut self, source: u8, error: u8, channel: u32, timestamp: u64) {
|
||||||
let mut traces_locked = self.traces.async_lock().await;
|
let mut traces_locked = self.traces.async_lock().await;
|
||||||
let mut trace = traces_locked.get_mut(&source).unwrap();
|
let trace = traces_locked.get_mut(&source).unwrap();
|
||||||
trace.state = RemoteState::PlaybackEnded {
|
trace.state = RemoteState::PlaybackEnded {
|
||||||
error: error,
|
error: error,
|
||||||
channel: channel,
|
channel: channel,
|
||||||
|
Loading…
Reference in New Issue
Block a user