From 81a6579bb99de6307d2db16abd256261af41c2e0 Mon Sep 17 00:00:00 2001 From: lunar-mining Date: Fri, 7 Jan 2022 18:24:47 +0100 Subject: [PATCH] map: cleanup --- bin/map/src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/map/src/main.rs b/bin/map/src/main.rs index 2527b9075..f09c53829 100644 --- a/bin/map/src/main.rs +++ b/bin/map/src/main.rs @@ -1,3 +1,4 @@ +use drk::Result; use rand::{thread_rng, Rng}; use std::{io, io::Read, time::Instant}; use termion::{async_stdin, event::Key, input::TermRead, raw::IntoRawMode}; @@ -10,7 +11,7 @@ use tui::{ Terminal, }; -fn main() -> Result<(), io::Error> { +fn main() -> Result<()> { // Set up terminal output let stdout = io::stdout().into_raw_mode()?; let backend = TermionBackend::new(stdout); @@ -20,8 +21,6 @@ fn main() -> Result<(), io::Error> { // This provides non-blocking input support. let mut asi = async_stdin(); - let mut then = Instant::now(); - let mut rng = thread_rng(); // Clear the terminal before first draw. terminal.clear()?; loop {