From aa770463caddae8e54a40553fc69567a3700c825 Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Tue, 28 Jan 2025 16:27:31 +0800 Subject: [PATCH] remove unnecessary mut --- src/runtime/src/rtio_dma.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/src/rtio_dma.rs b/src/runtime/src/rtio_dma.rs index e5f5194..970b117 100644 --- a/src/runtime/src/rtio_dma.rs +++ b/src/runtime/src/rtio_dma.rs @@ -144,7 +144,7 @@ pub mod remote_dma { 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 trace = traces_locked.get_mut(&source).unwrap(); + let trace = traces_locked.get_mut(&source).unwrap(); trace.state = RemoteState::PlaybackEnded { error: error, channel: channel,