Fix unused variable warnings
parent
e5b6faf6bd
commit
ab531f0294
|
@ -99,7 +99,7 @@ impl ContactManager {
|
||||||
self.mode = ViewMode::ReadOnly;
|
self.mode = ViewMode::ReadOnly;
|
||||||
self.content
|
self.content
|
||||||
.resize(self.content.size().0, 2, Cell::default());
|
.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.",
|
"This contact's origin is external and cannot be edited within meli.",
|
||||||
&mut self.content,
|
&mut self.content,
|
||||||
Color::Byte(250),
|
Color::Byte(250),
|
||||||
|
|
|
@ -108,7 +108,7 @@ impl ContactList {
|
||||||
Cell::with_char(' '),
|
Cell::with_char(' '),
|
||||||
context,
|
context,
|
||||||
);
|
);
|
||||||
let (x, _) = write_string_to_grid(
|
write_string_to_grid(
|
||||||
"NAME",
|
"NAME",
|
||||||
&mut self.data_columns.columns[0],
|
&mut self.data_columns.columns[0],
|
||||||
Color::Black,
|
Color::Black,
|
||||||
|
@ -142,7 +142,7 @@ impl ContactList {
|
||||||
for (idx, c) in book.values().enumerate() {
|
for (idx, c) in book.values().enumerate() {
|
||||||
self.id_positions.push(*c.id());
|
self.id_positions.push(*c.id());
|
||||||
|
|
||||||
let (x, _) = write_string_to_grid(
|
write_string_to_grid(
|
||||||
c.name(),
|
c.name(),
|
||||||
&mut self.data_columns.columns[0],
|
&mut self.data_columns.columns[0],
|
||||||
Color::Default,
|
Color::Default,
|
||||||
|
@ -152,7 +152,7 @@ impl ContactList {
|
||||||
false,
|
false,
|
||||||
);
|
);
|
||||||
|
|
||||||
let (x, _) = write_string_to_grid(
|
write_string_to_grid(
|
||||||
c.email(),
|
c.email(),
|
||||||
&mut self.data_columns.columns[1],
|
&mut self.data_columns.columns[1],
|
||||||
Color::Default,
|
Color::Default,
|
||||||
|
@ -162,7 +162,7 @@ impl ContactList {
|
||||||
false,
|
false,
|
||||||
);
|
);
|
||||||
|
|
||||||
let (x, _) = write_string_to_grid(
|
write_string_to_grid(
|
||||||
c.url(),
|
c.url(),
|
||||||
&mut self.data_columns.columns[2],
|
&mut self.data_columns.columns[2],
|
||||||
Color::Default,
|
Color::Default,
|
||||||
|
@ -195,9 +195,6 @@ impl ContactList {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn highlight_line(&mut self, grid: &mut CellBuffer, area: Area, idx: usize) {
|
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 */
|
/* Reset previously highlighted line */
|
||||||
let fg_color = Color::Default;
|
let fg_color = Color::Default;
|
||||||
let bg_color = if idx == self.new_cursor_pos {
|
let bg_color = if idx == self.new_cursor_pos {
|
||||||
|
|
Loading…
Reference in New Issue