fix warnings that have cropped up for transition to 2021 edition

This commit is contained in:
bunnie 2022-05-31 14:38:41 +08:00 committed by nworbnhoj
parent a459f721d0
commit 59550978f4
3 changed files with 3 additions and 4 deletions

View file

@ -715,7 +715,7 @@ fn main() -> ! {
match list_hash.get(item.as_str()) {
Some(index) => {
match index {
0...31 => drop(list_selected.set_bit(*index, true)),
0..=31 => drop(list_selected.set_bit(*index, true)),
_ => log::warn!("invalid bitfield index"),
};
}
@ -753,7 +753,7 @@ fn main() -> ! {
Some(item) => match list_hash.get(item.as_str()) {
Some(index) => {
match index {
0...31 => drop(list_selected.set_bit(*index, true)),
0..=31 => drop(list_selected.set_bit(*index, true)),
_ => log::warn!("invalid bitfield index"),
};
}

View file

@ -298,6 +298,7 @@ mod implementation {
fn main() -> ! {
#[cfg(not(any(target_os = "none", target_os = "xous")))]
use crate::implementation::RootKeys;
log_server::init_wait().unwrap();

View file

@ -71,8 +71,6 @@ impl Clock for EmbeddedClock {
}
fn main() -> ! {
use crate::SpinalUsbDevice;
log_server::init_wait().unwrap();
log::set_max_level(log::LevelFilter::Debug);
log::info!("my PID is {}", xous::process::id());