diff --git a/services/modals/src/main.rs b/services/modals/src/main.rs index 0c0637a78..0cc8ac532 100644 --- a/services/modals/src/main.rs +++ b/services/modals/src/main.rs @@ -660,7 +660,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"), }; } @@ -698,7 +698,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"), }; } diff --git a/services/root-keys/src/main.rs b/services/root-keys/src/main.rs index 0a22df56f..7154db7d3 100644 --- a/services/root-keys/src/main.rs +++ b/services/root-keys/src/main.rs @@ -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(); diff --git a/services/usb-device-xous/src/main.rs b/services/usb-device-xous/src/main.rs index 0c2077501..9f07861ec 100644 --- a/services/usb-device-xous/src/main.rs +++ b/services/usb-device-xous/src/main.rs @@ -66,8 +66,6 @@ impl Clock for EmbeddedClock { } fn main() -> ! { - use crate::SpinalUsbDevice; - log_server::init_wait().unwrap(); log::set_max_level(log::LevelFilter::Info); log::info!("my PID is {}", xous::process::id());