Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove needless lifetimes #60

Merged
merged 2 commits into from
Mar 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
4 changes: 2 additions & 2 deletions tui-popup/src/popup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion tui-prompts/examples/multi_line.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion tui-prompts/src/text_prompt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading