What changed, and why it matters
This commit removes two unused Rust import statements (`Insets` and `fonts`) and one unused import group (`text::TextStyle`) from UI source files. It is a routine cleanup triggered by the Clippy linter to eliminate compiler warnings. There is no functional code change and no security relevance.
No security action required. Treat as normal code hygiene.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff is a pure import cleanup in two Rust UI modules for the Eckhart layout: homescreen.rs drops the unused Insets import, and progress_screen.rs drops unused text::TextStyle and fonts imports. No logic, types, APIs, or behavior are modified. The commit title explicitly states it fixes Clippy warnings and includes [no changelog], indicating a non-functional refactor.
Changed components
core/embed/rust/src/ui/layout_eckhart/firmware/homescreen.rscore/embed/rust/src/ui/layout_eckhart/firmware/progress_screen.rsInspect captured patch +3 / −3
diff --git a/core/embed/rust/src/ui/layout_eckhart/firmware/homescreen.rs b/core/embed/rust/src/ui/layout_eckhart/firmware/homescreen.rs
index e209dd66..b5592a7c 100644
--- a/core/embed/rust/src/ui/layout_eckhart/firmware/homescreen.rs
+++ b/core/embed/rust/src/ui/layout_eckhart/firmware/homescreen.rs
@@ -9,7 +9,7 @@ use crate::{
ui::{
component::{text::TextStyle, Component, Event, EventCtx, Label, Never, Swipe},
display::{image::ImageInfo, Color},
- geometry::{Alignment, Direction, Insets, Offset, Rect},
+ geometry::{Alignment, Direction, Offset, Rect},
layout::util::get_user_custom_image,
shape::{self, Renderer},
util::animation_disabled,
diff --git a/core/embed/rust/src/ui/layout_eckhart/firmware/progress_screen.rs b/core/embed/rust/src/ui/layout_eckhart/firmware/progress_screen.rs
index e3304950..d8fea1ca 100644
--- a/core/embed/rust/src/ui/layout_eckhart/firmware/progress_screen.rs
+++ b/core/embed/rust/src/ui/layout_eckhart/firmware/progress_screen.rs
@@ -4,7 +4,7 @@ use crate::{
strutil::TString,
translations::TR,
ui::{
- component::{text::TextStyle, Component, Event, EventCtx, Label, Never},
+ component::{Component, Event, EventCtx, Label, Never},
geometry::{Alignment2D, Offset, Rect},
shape::Renderer,
util::animation_disabled,
@@ -14,7 +14,7 @@ use crate::{
use super::super::{
constant::SCREEN,
cshape::{render_loader, render_loader_indeterminate, ScreenBorder},
- fonts, theme,
+ theme,
};
const LOADER_SPEED: u16 = 5;
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.