chore: apply recommendations from clippy

This commit is contained in:
Cheong Lau 2025-10-04 10:51:18 +10:00 • committed by GitHub
parent cec55dafd7
commit 8e0f1c4a09
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
56 changed files with 720 additions and 824 deletions

View file

@ -17,7 +17,7 @@ pub struct WindowImage<'a, Msg> {
icon: Element<'a, Msg>,
}
impl<'a, Msg> WindowImage<'a, Msg>
impl<Msg> WindowImage<'_, Msg>
where
Msg: 'static + Clone,
{
@ -81,13 +81,13 @@ where
}
}
impl<'a, Msg> Widget<Msg, cosmic::Theme, cosmic::Renderer> for WindowImage<'a, Msg> {
impl<Msg> Widget<Msg, cosmic::Theme, cosmic::Renderer> for WindowImage<'_, Msg> {
fn children(&self) -> Vec<cosmic::iced_core::widget::Tree> {
vec![Tree::new(&self.image_button), Tree::new(&self.icon)]
}
fn diff(&mut self, tree: &mut cosmic::iced_core::widget::Tree) {
tree.diff_children(&mut [&mut self.image_button, &mut self.icon])
tree.diff_children(&mut [&mut self.image_button, &mut self.icon]);
}
fn overlay<'b>(