mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
fix warnings that have cropped up for transition to 2021 edition
This commit is contained in:
parent
a459f721d0
commit
59550978f4
3 changed files with 3 additions and 4 deletions
|
|
@ -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"),
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in a new issue