From ed52aad9d281da4fcfbd6ccf95f658393c21e1f4 Mon Sep 17 00:00:00 2001 From: Kyosuke Fujimoto Date: Sat, 30 Nov 2024 10:31:33 +0900 Subject: [PATCH] Elide unnecessary lifetime --- src/widget/dialog.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widget/dialog.rs b/src/widget/dialog.rs index 7030c16..000daa7 100644 --- a/src/widget/dialog.rs +++ b/src/widget/dialog.rs @@ -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);