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
@@ -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);