Skip to content

Commit

Permalink
Elide unnecessary lifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
lusingander committed Nov 30, 2024
1 parent bd9db31 commit ed52aad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/widget/dialog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ impl<'a> Dialog<'a> {
}
}

impl<'a> WidgetRef for Dialog<'a> {
impl WidgetRef for Dialog<'_> {
fn render_ref(&self, area: Rect, buf: &mut Buffer) {
self.render_dialog(area, buf);
}
}

impl<'a> Dialog<'a> {
impl Dialog<'_> {
fn render_dialog(&self, area: Rect, buf: &mut Buffer) {
let outer = outer_rect(area, &Margin::new(1, 0));
Clear.render(outer, buf);
Expand Down

0 comments on commit ed52aad

Please sign in to comment.