From 2835bce5ad7a86ac9e51ee690cb9657b975bafa8 Mon Sep 17 00:00:00 2001
From: Josh McKinney <joshka@users.noreply.github.com>
Date: Sat, 1 Mar 2025 16:42:00 -0800
Subject: [PATCH 1/2] chore: remove needless lifetimes

https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
---
 tui-popup/src/popup.rs             | 4 ++--
 tui-prompts/examples/multi_line.rs | 2 +-
 tui-prompts/src/text_prompt.rs     | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tui-popup/src/popup.rs b/tui-popup/src/popup.rs
index badab5d..6bc54df 100644
--- a/tui-popup/src/popup.rs
+++ b/tui-popup/src/popup.rs
@@ -76,7 +76,7 @@ impl<W: PartialEq> PartialEq for Popup<'_, W> {
     }
 }
 
-impl<'content, W> Popup<'content, W> {
+impl<W> Popup<'_, W> {
     /// Create a new popup with the given title and body with all the borders.
     ///
     /// # Parameters
@@ -148,7 +148,7 @@ impl<W: KnownSize + WidgetRef> StatefulWidget for &Popup<'_, W> {
     }
 }
 
-impl<'content, W: KnownSize> Popup<'content, W> {
+impl<W: KnownSize> Popup<'_, W> {
     fn popup_area(&self, state: &mut PopupState, area: Rect) -> Rect {
         if let Some(current) = state.area.take() {
             return current.clamp(area);
diff --git a/tui-prompts/examples/multi_line.rs b/tui-prompts/examples/multi_line.rs
index 960506f..294225e 100644
--- a/tui-prompts/examples/multi_line.rs
+++ b/tui-prompts/examples/multi_line.rs
@@ -40,7 +40,7 @@ struct App<'a> {
     state: TextState<'a>,
 }
 
-impl<'a> App<'a> {
+impl App<'_> {
     pub fn new(cli: Cli) -> Self {
         Self {
             debug: cli.debug,
diff --git a/tui-prompts/src/text_prompt.rs b/tui-prompts/src/text_prompt.rs
index 8674cf8..f563926 100644
--- a/tui-prompts/src/text_prompt.rs
+++ b/tui-prompts/src/text_prompt.rs
@@ -175,7 +175,7 @@ fn span_split_at(span: Span, mid: usize) -> (Span, Span) {
     (first, second)
 }
 
-impl<'a> TextPrompt<'a> {
+impl TextPrompt<'_> {
     fn render_block(&mut self, area: &mut Rect, buf: &mut Buffer) {
         if let Some(block) = self.block.take() {
             let inner = block.inner(*area);

From 2655aed85fb516cc084e2dae2154d96911a14f0c Mon Sep 17 00:00:00 2001
From: Josh McKinney <joshka@users.noreply.github.com>
Date: Sat, 1 Mar 2025 16:43:38 -0800
Subject: [PATCH 2/2] style: cargo fmt

---
 src/lib.rs | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/lib.rs b/src/lib.rs
index 906e318..746ca12 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -19,27 +19,21 @@
 #[cfg(feature = "big-text")]
 #[doc(inline)]
 pub use tui_big_text as big_text;
-
 #[cfg(feature = "box-text")]
 #[doc(inline)]
 pub use tui_box_text as box_text;
-
 #[cfg(feature = "cards")]
 #[doc(inline)]
 pub use tui_cards as cards;
-
 #[cfg(feature = "popup")]
 #[doc(inline)]
 pub use tui_popup as popup;
-
 #[cfg(feature = "prompts")]
 #[doc(inline)]
 pub use tui_prompts as prompts;
-
 #[cfg(feature = "qrcode")]
 #[doc(inline)]
 pub use tui_qrcode as qrcode;
-
 #[cfg(feature = "scrollview")]
 #[doc(inline)]
 pub use tui_scrollview as scrollview;