Fix unused variable warnings

This commit is contained in:
Manos Pitsidianakis 2019-10-24 20:35:30 +03:00
parent e5b6faf6bd
commit ab531f0294
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710
2 changed files with 5 additions and 8 deletions

View File

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

View File

@ -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 {