1
0
Fork 0

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 { if let Some(buffer) = &*idle_kernel {
info!("Loading idle kernel"); info!("Loading idle kernel");
let _ = load_kernel(&buffer, &control, None) 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"); info!("Running idle kernel");
let _ = handle_run_kernel(None, &control) 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"); info!("Idle kernel terminated");
} }
}).fuse() => (), }).fuse() => (),

View File

@ -1,7 +1,6 @@
use libboard_zynq;
#[cfg(feature = "target_zc706")] #[cfg(feature = "target_zc706")]
mod i2c { mod i2c {
use libboard_zynq;
use crate::artiq_raise; use crate::artiq_raise;
static mut I2C_BUS: Option<libboard_zynq::i2c::I2c> = None; static mut I2C_BUS: Option<libboard_zynq::i2c::I2c> = None;