From ab531f0294cde7485750172fff1cd324fdf8c421 Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Thu, 24 Oct 2019 20:35:30 +0300 Subject: [PATCH] Fix unused variable warnings --- ui/src/components/contacts.rs | 2 +- ui/src/components/contacts/contact_list.rs | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/ui/src/components/contacts.rs b/ui/src/components/contacts.rs index 2fe13172..5c98a5dd 100644 --- a/ui/src/components/contacts.rs +++ b/ui/src/components/contacts.rs @@ -99,7 +99,7 @@ impl ContactManager { self.mode = ViewMode::ReadOnly; self.content .resize(self.content.size().0, 2, Cell::default()); - let (x, y) = write_string_to_grid( + write_string_to_grid( "This contact's origin is external and cannot be edited within meli.", &mut self.content, Color::Byte(250), diff --git a/ui/src/components/contacts/contact_list.rs b/ui/src/components/contacts/contact_list.rs index 144a51cb..070616c3 100644 --- a/ui/src/components/contacts/contact_list.rs +++ b/ui/src/components/contacts/contact_list.rs @@ -108,7 +108,7 @@ impl ContactList { Cell::with_char(' '), context, ); - let (x, _) = write_string_to_grid( + write_string_to_grid( "NAME", &mut self.data_columns.columns[0], Color::Black, @@ -142,7 +142,7 @@ impl ContactList { for (idx, c) in book.values().enumerate() { self.id_positions.push(*c.id()); - let (x, _) = write_string_to_grid( + write_string_to_grid( c.name(), &mut self.data_columns.columns[0], Color::Default, @@ -152,7 +152,7 @@ impl ContactList { false, ); - let (x, _) = write_string_to_grid( + write_string_to_grid( c.email(), &mut self.data_columns.columns[1], Color::Default, @@ -162,7 +162,7 @@ impl ContactList { false, ); - let (x, _) = write_string_to_grid( + write_string_to_grid( c.url(), &mut self.data_columns.columns[2], Color::Default, @@ -195,9 +195,6 @@ impl ContactList { } fn highlight_line(&mut self, grid: &mut CellBuffer, area: Area, idx: usize) { - let upper_left = upper_left!(area); - let bottom_right = bottom_right!(area); - /* Reset previously highlighted line */ let fg_color = Color::Default; let bg_color = if idx == self.new_cursor_pos {