From 07b425a67a7af21824bf340a9d897cb3d83d343c Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 16 Nov 2020 14:57:20 +0800 Subject: [PATCH] fix other compilation warnings --- src/runtime/src/comms.rs | 4 ++-- src/runtime/src/i2c.rs | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/runtime/src/comms.rs b/src/runtime/src/comms.rs index 71297f2..d12e578 100644 --- a/src/runtime/src/comms.rs +++ b/src/runtime/src/comms.rs @@ -430,10 +430,10 @@ pub fn main(timer: GlobalTimer, cfg: Config) { if let Some(buffer) = &*idle_kernel { info!("Loading idle kernel"); let _ = load_kernel(&buffer, &control, None) - .await.map_err(|e| warn!("error loading idle kernel")); + .await.map_err(|_| warn!("error loading idle kernel")); info!("Running idle kernel"); let _ = handle_run_kernel(None, &control) - .await.map_err(|e| warn!("error running idle kernel")); + .await.map_err(|_| warn!("error running idle kernel")); info!("Idle kernel terminated"); } }).fuse() => (), diff --git a/src/runtime/src/i2c.rs b/src/runtime/src/i2c.rs index d090301..5c06d15 100644 --- a/src/runtime/src/i2c.rs +++ b/src/runtime/src/i2c.rs @@ -1,7 +1,6 @@ -use libboard_zynq; - #[cfg(feature = "target_zc706")] mod i2c { + use libboard_zynq; use crate::artiq_raise; static mut I2C_BUS: Option = None;