From 4e3e0d129c84d5336e5a54c9a5eb3fd965341912 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 11 Jan 2022 09:31:26 +0800 Subject: [PATCH] firmware: fix compilation warning --- artiq/firmware/runtime/rtio_mgt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }