refactor: pedantic cargo clippy, do not use Results for always-succeeding functions

This commit is contained in:
Aleksander
2025-08-16 21:27:47 +02:00
parent 1f8960033c
commit 481db7f23c
45 changed files with 320 additions and 310 deletions

View File

@@ -17,7 +17,7 @@ use wgui::{
prelude::{auto, length, percent},
},
widget::{
label::{WidgetLabelParams, WidgetLabel},
label::{WidgetLabel, WidgetLabelParams},
rectangle::{WidgetRectangle, WidgetRectangleParams},
util::WLength,
},
@@ -182,8 +182,7 @@ fn new_toast(toast: Toast, app: &mut AppState) -> Option<(OverlayState, Box<dyn
border: 1.0,
round: WLength::Units(4.0),
..Default::default()
})
.unwrap(),
}),
taffy::Style {
align_items: Some(taffy::AlignItems::Center),
justify_content: Some(taffy::JustifyContent::Center),
@@ -205,8 +204,7 @@ fn new_toast(toast: Toast, app: &mut AppState) -> Option<(OverlayState, Box<dyn
..Default::default()
},
},
)
.unwrap(),
),
taffy::Style {
size: taffy::Size {
width: percent(1.0),
@@ -229,8 +227,7 @@ fn new_toast(toast: Toast, app: &mut AppState) -> Option<(OverlayState, Box<dyn
..Default::default()
},
},
)
.unwrap(),
),
taffy::Style {
size: taffy::Size {
width: percent(1.0),