Skip to content

Commit

Permalink
Clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
PolyMeilex committed Dec 7, 2024
1 parent ed95d4a commit 074123b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions neothesia-iced-widgets/src/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub struct Layout<'a, Message> {
bottom: Option<Element<'a, Message>>,
}

impl<'a, M: 'static> Default for Layout<'a, M> {
impl<M: 'static> Default for Layout<'_, M> {
fn default() -> Self {
Self {
top: None,
Expand Down Expand Up @@ -75,7 +75,7 @@ pub struct BarLayout<'a, Message> {
right: Option<Element<'a, Message>>,
}

impl<'a, M: 'static> Default for BarLayout<'a, M> {
impl<M: 'static> Default for BarLayout<'_, M> {
fn default() -> Self {
Self {
left: None,
Expand Down
2 changes: 1 addition & 1 deletion neothesia-iced-widgets/src/neo_btn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl<'a, Message: Clone> NeoBtn<'a, Message> {
}
}

impl<'a, Message: Clone> Widget<Message, Theme, Renderer> for NeoBtn<'a, Message> {
impl<Message: Clone> Widget<Message, Theme, Renderer> for NeoBtn<'_, Message> {
fn tag(&self) -> tree::Tag {
tree::Tag::of::<State>()
}
Expand Down
6 changes: 3 additions & 3 deletions neothesia-iced-widgets/src/wrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ impl<'a, Message, Renderer, Direction> Wrap<'a, Message, Direction, Renderer> {
}
}

impl<'a, Message, Renderer, Direction> Widget<Message, Theme, Renderer>
for Wrap<'a, Message, Direction, Renderer>
impl<Message, Renderer, Direction> Widget<Message, Theme, Renderer>
for Wrap<'_, Message, Direction, Renderer>
where
Self: WrapLayout<Renderer>,
Renderer: core::Renderer,
Expand Down Expand Up @@ -317,7 +317,7 @@ where
}
}

impl<'a, Message, Renderer, Direction> Default for Wrap<'a, Message, Direction, Renderer> {
impl<Message, Renderer, Direction> Default for Wrap<'_, Message, Direction, Renderer> {
fn default() -> Self {
Self {
elements: vec![],
Expand Down

0 comments on commit 074123b

Please sign in to comment.