clippy + dependency updates

This commit is contained in:
2025-06-26 19:44:36 +02:00
parent 61ffe06343
commit 4120b0d40a
19 changed files with 37 additions and 36 deletions

View File

@ -9,7 +9,7 @@ repository = "https://egit.irs.uni-stuttgart.de/rust/zynq7000-rs"
license = "MIT OR Apache-2.0"
[dependencies]
cortex-ar = { git = "https://github.com/rust-embedded/cortex-ar", branch = "main" }
cortex-ar = "0.2"
zynq7000-rt = { path = "../../zynq7000-rt" }
zynq7000 = { path = "../../zynq7000" }
zynq7000-hal = { path = "../../zynq7000-hal" }

View File

@ -131,6 +131,6 @@ pub extern "C" fn _prefetch_handler() {
/// Panic handler
#[panic_handler]
fn panic(info: &PanicInfo) -> ! {
error!("Panic: {:?}", info);
error!("Panic: {info:?}");
loop {}
}

View File

@ -77,13 +77,13 @@ pub fn main() -> ! {
};
let boot_mode = BootMode::new();
info!("Boot mode: {:?}", boot_mode);
info!("Boot mode: {boot_mode:?}");
let mut led = Output::new_for_mio(mio_pins.mio7, PinState::Low);
loop {
let gtc = gtc.read_timer();
info!("Hello, world!");
info!("GTC ticks: {}", gtc);
info!("GTC ticks: {gtc}");
led.toggle().unwrap();
for _ in 0..5_000_000 {
nop();
@ -134,6 +134,6 @@ pub extern "C" fn _prefetch_handler() {
/// Panic handler
#[panic_handler]
fn panic(info: &PanicInfo) -> ! {
error!("Panic: {:?}", info);
error!("Panic: {info:?}");
loop {}
}