summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-08-03 19:36:06 +0200
committerMatthias Beyer <mail@beyermatthias.de>2020-08-03 19:36:06 +0200
commit48e862f21dfee6b2bf31cf16625a64f73527feda (patch)
tree15ef06e2377013b7a8e7bb79e694377d3eaf5b1a
parente57d1d719dccda21092cb27aadcf7b7487ba87f0 (diff)
Remove unused variables
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--src/mail_view.rs3
-rw-r--r--src/maillist_view.rs5
2 files changed, 3 insertions, 5 deletions
diff --git a/src/mail_view.rs b/src/mail_view.rs
index 0cf4896..93c781a 100644
--- a/src/mail_view.rs
+++ b/src/mail_view.rs
@@ -20,7 +20,6 @@ use result_inspect::ResultInspect;
use mailparse::ParsedMail;
pub struct MailView {
- database_path: PathBuf,
view: ScrollView<LinearLayout>,
}
@@ -59,7 +58,7 @@ impl MailView {
view
};
- Ok(MailView { database_path, view: view.scrollable() }.with_name(name))
+ Ok(MailView { view: view.scrollable() }.with_name(name))
}
fn parsed_mail_to_list_of_textviews<'a>(pm: &'a ParsedMail) -> Result<Vec<TextView>> {
diff --git a/src/maillist_view.rs b/src/maillist_view.rs
index be67c45..f0b90c2 100644
--- a/src/maillist_view.rs
+++ b/src/maillist_view.rs
@@ -24,7 +24,6 @@ use crate::mail_view::MailView;
pub struct MaillistView {
view: TableView<MailListingData, MailListingColumn>,
- database_path: PathBuf,
}
impl MaillistView {
@@ -81,7 +80,7 @@ impl MaillistView {
debug!("Found {} entries", items.len());
let n = name.clone();
let db_path = database_path.clone();
- let tab = TableView::<MailListingData, MailListingColumn>::new()
+ let view = TableView::<MailListingData, MailListingColumn>::new()
.column(MailListingColumn::Date, "Date", |c| c.width(20))
.column(MailListingColumn::Tags, "Tags", |c| c.width(20))
.column(MailListingColumn::From, "From", |c| c)
@@ -119,7 +118,7 @@ impl MaillistView {
// use the mail ID to get the whole thread and open it as a table item
});
- Ok(MaillistView{ view: tab, database_path }.with_name(name))
+ Ok(MaillistView{ view }.with_name(name))
}
}