fix other compilation warnings

This commit is contained in:
Sebastien Bourdeauducq 2020-11-16 14:57:20 +08:00
parent 57ae8619f8
commit 07b425a67a
2 changed files with 3 additions and 4 deletions

View File

@ -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() => (),

View File

@ -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<libboard_zynq::i2c::I2c> = None;