From 66b2f1c8bd03d176ff9c0da0dd8d996c6db11060 Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Tue, 28 May 2024 20:54:39 +0100 Subject: [PATCH] refactor: remove unused struct+impl `ListItem` --- src/app.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/app.rs b/src/app.rs index 8c38321..f61febc 100644 --- a/src/app.rs +++ b/src/app.rs @@ -8,11 +8,6 @@ use crate::api::SearchResult; /// Application result type. pub type AppResult = std::result::Result>; -struct ListItem { - title: String, - released: String, -} - pub struct ResultList { pub state: ListState, pub items: Vec, @@ -54,15 +49,6 @@ impl ResultList { } } -impl ListItem { - fn new(title: &str, released: &str) -> Self { - Self { - title: title.to_string(), - released: released.to_string(), - } - } -} - /// Application state pub struct App { /// Current value of the input box