Skip to content

Commit

Permalink
Run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Dec 2, 2024
1 parent 6026613 commit 8295b23
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
4 changes: 1 addition & 3 deletions widget/src/lazy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,7 @@ struct Overlay<'a, Message, Theme, Renderer>(
Option<Inner<'a, Message, Theme, Renderer>>,
);

impl<Message, Theme, Renderer> Drop
for Overlay<'_, Message, Theme, Renderer>
{
impl<Message, Theme, Renderer> Drop for Overlay<'_, Message, Theme, Renderer> {
fn drop(&mut self) {
let heads = self.0.take().unwrap().into_heads();
(*heads.cell.borrow_mut()) = Some(heads.element);
Expand Down
7 changes: 2 additions & 5 deletions widget/src/lazy/responsive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,7 @@ struct Overlay<'a, 'b, Message, Theme, Renderer> {
),
}

impl<Message, Theme, Renderer>
Overlay<'_, '_, Message, Theme, Renderer>
{
impl<Message, Theme, Renderer> Overlay<'_, '_, Message, Theme, Renderer> {
fn with_overlay_maybe<T>(
&self,
f: impl FnOnce(&mut Nested<'_, Message, Theme, Renderer>) -> T,
Expand All @@ -380,8 +378,7 @@ impl<Message, Theme, Renderer>
}
}

impl<Message, Theme, Renderer>
overlay::Overlay<Message, Theme, Renderer>
impl<Message, Theme, Renderer> overlay::Overlay<Message, Theme, Renderer>
for Overlay<'_, '_, Message, Theme, Renderer>
where
Renderer: core::Renderer,
Expand Down
3 changes: 1 addition & 2 deletions widget/src/overlay/menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,7 @@ where
}
}

impl<Message, Theme, Renderer>
crate::core::Overlay<Message, Theme, Renderer>
impl<Message, Theme, Renderer> crate::core::Overlay<Message, Theme, Renderer>
for Overlay<'_, '_, Message, Theme, Renderer>
where
Theme: Catalog,
Expand Down
3 changes: 1 addition & 2 deletions widget/src/tooltip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,7 @@ where
class: &'b Theme::Class<'a>,
}

impl<Message, Theme, Renderer>
overlay::Overlay<Message, Theme, Renderer>
impl<Message, Theme, Renderer> overlay::Overlay<Message, Theme, Renderer>
for Overlay<'_, '_, Message, Theme, Renderer>
where
Theme: container::Catalog,
Expand Down

0 comments on commit 8295b23

Please sign in to comment.