From d3fbfd75b04a84ba349db62abba8de29f13c3b47 Mon Sep 17 00:00:00 2001 From: Egor Savkin Date: Wed, 18 Oct 2023 11:24:43 +0800 Subject: [PATCH] Fix grabber build and warning Signed-off-by: Egor Savkin --- src/runtime/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runtime/src/main.rs b/src/runtime/src/main.rs index ec5a84c5..ffa1a6f5 100644 --- a/src/runtime/src/main.rs +++ b/src/runtime/src/main.rs @@ -62,7 +62,8 @@ mod grabber { use libasync::delay; use libboard_artiq::grabber; use libboard_zynq::time::Milliseconds; - pub async fn grabber_thread(mut timer: GlobalTimer) { + use crate::GlobalTimer; + pub async fn grabber_thread(timer: GlobalTimer) { let mut countdown = timer.countdown(); loop { grabber::tick();