From fe30d6a024df3d50e3a0fa1741507c7b41dcc2ab Mon Sep 17 00:00:00 2001 From: lunar-mining Date: Sat, 8 Jan 2022 10:23:16 +0100 Subject: [PATCH] map: cleanup warnings --- bin/map/src/main.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/map/src/main.rs b/bin/map/src/main.rs index 88a76ead7..73ec76976 100644 --- a/bin/map/src/main.rs +++ b/bin/map/src/main.rs @@ -1,13 +1,12 @@ use drk::Result; -use rand::{thread_rng, Rng}; -use std::{io, io::Read, time::Instant}; +use std::{io, io::Read}; use termion::{async_stdin, event::Key, input::TermRead, raw::IntoRawMode}; use tui::{ backend::TermionBackend, layout::{Constraint, Direction, Layout}, style::{Color, Modifier, Style}, text::Spans, - widgets::{Block, Borders, List, ListItem, Paragraph, Widget}, + widgets::{Block, Borders, List, ListItem, Paragraph}, Terminal, }; @@ -48,7 +47,7 @@ fn main() -> Result<()> { // create a list let mut items: Vec = Vec::new(); - for num in 1..11 { + for num in 1..100 { let new_item = ListItem::new(format!("Node {}", num)); items.push(new_item); }