yoda: iced_widget cleanup (7→0 warnings)
- overlay/menu.rs:578: real bug fix — List::draw was rendering with
text::Wrapping::default() instead of the configured self.text_wrap.
Wiring it through eliminates the 'field never read' warning AND
honors the wrap setting that was being silently dropped.
- slider.rs:735-744: replace `if let Ok(x) = …try_into() { … }` with
irrefutable `let Ok(x) = …try_into();` (the conversion is provably
Infallible at the call site). Same behavior, no compiler noise.
- lazy.rs:8 / lazy/component.rs:13: drop unused
`iced_renderer::core::widget::Operation` imports.
Leyoda 2026 – GPLv3
This commit is contained in:
parent
12c870af7a
commit
0b77873749
4 changed files with 9 additions and 15 deletions
|
|
@ -575,7 +575,7 @@ where
|
|||
align_x: text::Alignment::Default,
|
||||
align_y: alignment::Vertical::Center,
|
||||
shaping: self.text_shaping,
|
||||
wrapping: text::Wrapping::default(),
|
||||
wrapping: self.text_wrap,
|
||||
ellipsize: text::Ellipsize::default(),
|
||||
},
|
||||
Point::new(bounds.x + self.padding.left, bounds.center_y()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue