Skip to content

Commit

Permalink
Fix for clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
akiomik committed Dec 10, 2024
1 parent 0016d32 commit 4a36a9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/home.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub struct Home<'a> {
reply_to: Option<Event>,
}

impl<'a> Home<'a> {
impl Home<'_> {
pub fn new() -> Self {
Self::default()
}
Expand Down Expand Up @@ -144,7 +144,7 @@ impl<'a> Home<'a> {
}
}

impl<'a> Component for Home<'a> {
impl Component for Home<'_> {
fn register_action_handler(&mut self, tx: UnboundedSender<Action>) -> Result<()> {
self.command_tx = Some(tx);
Ok(())
Expand Down Expand Up @@ -292,7 +292,7 @@ impl<'a> Component for Home<'a> {
}
}

impl<'a> ScrollableList<Event> for Home<'a> {
impl ScrollableList<Event> for Home<'_> {
fn select(&mut self, index: Option<usize>) {
self.list_state.select(index);
}
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/public_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ impl PublicKey {
}
}

impl<'a> From<PublicKey> for Text<'a> {
impl From<PublicKey> for Text<'_> {
fn from(value: PublicKey) -> Self {
Text::from(value.shortened())
}
Expand Down

0 comments on commit 4a36a9f

Please sign in to comment.