fix clippy warnings #57

Merged
rhetenor merged 6 commits from rhetenor/errorview-show-error-in-nfc-module AGit into main 2026-08-30 11:26:49 +02:00
Showing only changes of commit 3d36885e11 - Show all commits
+7 -2
View File
@@ -16,6 +16,7 @@ use embedded_graphics::{
pixelcolor::Rgb565,
prelude::*,
primitives::Rectangle,
text::Text,
};
use alloc::format;
@@ -34,7 +35,11 @@ impl Navigable for FlashInfoView {
peripherals: &Peripherals,
) -> impl core::future::Future<Output = Result<(), Box<dyn error::Error>>> + Send {
async move {
let _style = MonoTextStyle::new(&FONT_10X20, Rgb565::WHITE);
outputs
.primary_display
.clear(Rgb565::BLACK)
.map_err(PrimaryDisplayError::from)?;
let style = MonoTextStyle::new(&FONT_10X20, Rgb565::WHITE);
let mut magic_bytes: [u8; MAGIC_REGION.size] = [0; MAGIC_REGION.size];
peripherals
.store
@@ -55,7 +60,7 @@ impl Navigable for FlashInfoView {
let style = MonoTextStyle::new(&FONT_10X20, Rgb565::WHITE);
let textbox_style = TextBoxStyleBuilder::new()
.height_mode(HeightMode::FitToText)
.alignment(HorizontalAlignment::Center)
.alignment(HorizontalAlignment::Justified)
.build();
let display_area = outputs.primary_display.bounding_box();