Merge branch 'main' into var-interpolation

This commit is contained in:
tangowithfoxtrot
2025-01-26 14:36:45 -08:00
parent c4ace8c53f
commit 8d450dea5a
55 changed files with 103 additions and 58 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ where
fn warning(self) -> T;
}
impl<'a, T, U> ManagarrStyle<'a, T> for U
impl<T, U> ManagarrStyle<'_, T> for U
where
U: Styled<Item = T>,
T: Default,
+2 -2
View File
@@ -20,7 +20,7 @@ pub struct Button<'a> {
is_selected: bool,
}
impl<'a> Button<'a> {
impl Button<'_> {
fn render_button_with_icon(self, area: Rect, buf: &mut Buffer) {
let [title_area, icon_area] = Layout::horizontal([
Constraint::Length(self.title.len() as u16),
@@ -69,7 +69,7 @@ impl<'a> Button<'a> {
}
}
impl<'a> Widget for Button<'a> {
impl Widget for Button<'_> {
fn render(self, area: Rect, buf: &mut Buffer)
where
Self: Sized,
+1 -1
View File
@@ -49,7 +49,7 @@ impl<'a> Checkbox<'a> {
}
}
impl<'a> Widget for Checkbox<'a> {
impl Widget for Checkbox<'_> {
fn render(self, area: Rect, buf: &mut Buffer) {
self.render_checkbox(area, buf);
}
+2 -2
View File
@@ -26,7 +26,7 @@ pub struct ConfirmationPrompt<'a> {
yes_no_highlighted: bool,
}
impl<'a> ConfirmationPrompt<'a> {
impl ConfirmationPrompt<'_> {
pub fn new() -> Self {
Self {
title: "",
@@ -135,7 +135,7 @@ impl<'a> ConfirmationPrompt<'a> {
}
}
impl<'a> Widget for ConfirmationPrompt<'a> {
impl Widget for ConfirmationPrompt<'_> {
fn render(self, area: Rect, buf: &mut Buffer) {
if self.checkboxes.is_some() {
self.render_confirmation_prompt_with_checkboxes(area, buf);
+2 -2
View File
@@ -96,7 +96,7 @@ impl<'a> InputBox<'a> {
}
}
impl<'a> Widget for InputBox<'a> {
impl Widget for InputBox<'_> {
fn render(self, area: Rect, buf: &mut Buffer)
where
Self: Sized,
@@ -105,7 +105,7 @@ impl<'a> Widget for InputBox<'a> {
}
}
impl<'a> WidgetRef for InputBox<'a> {
impl WidgetRef for InputBox<'_> {
fn render_ref(&self, area: Rect, buf: &mut Buffer) {
self.render_input_box(area, buf);
}
+1 -1
View File
@@ -53,7 +53,7 @@ impl<'a> InputBoxPopup<'a> {
}
}
impl<'a> WidgetRef for InputBoxPopup<'a> {
impl WidgetRef for InputBoxPopup<'_> {
fn render_ref(&self, area: Rect, buf: &mut Buffer) {
self.render_popup(area, buf);
}
+1 -1
View File
@@ -30,7 +30,7 @@ impl<'a> LoadingBlock<'a> {
}
}
impl<'a> Widget for LoadingBlock<'a> {
impl Widget for LoadingBlock<'_> {
fn render(self, area: Rect, buf: &mut Buffer) {
self.render_loading_block(area, buf);
}
+1 -1
View File
@@ -42,7 +42,7 @@ impl<'a> Message<'a> {
}
}
impl<'a> Widget for Message<'a> {
impl Widget for Message<'_> {
fn render(self, area: Rect, buf: &mut Buffer) {
self.render_message(area, buf);
}
+1 -1
View File
@@ -129,7 +129,7 @@ impl<'a, T: Widget> Popup<'a, T> {
}
}
impl<'a, T: Widget> Widget for Popup<'a, T> {
impl<T: Widget> Widget for Popup<'_, T> {
fn render(self, area: Rect, buf: &mut Buffer) {
self.render_popup(area, buf);
}