diff --git a/artiq/firmware/runtime/rtio_mgt.rs b/artiq/firmware/runtime/rtio_mgt.rs index 1a1d1660b..2869cf744 100644 --- a/artiq/firmware/runtime/rtio_mgt.rs +++ b/artiq/firmware/runtime/rtio_mgt.rs @@ -329,7 +329,7 @@ pub mod drtio { static mut SEEN_ASYNC_ERRORS: u8 = 0; pub unsafe fn get_async_errors() -> u8 { - let mut errors = SEEN_ASYNC_ERRORS; + let errors = SEEN_ASYNC_ERRORS; SEEN_ASYNC_ERRORS = 0; errors }