refactor: Updated the 2018 idiom lint to the 2021_compatibility lint

This commit is contained in:
2025-01-26 14:47:40 -07:00
parent 47a3ef1d8b
commit e8a6f740b9
52 changed files with 56 additions and 56 deletions
+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,