From 76d3a977bdfb6393f9179bdfc6f087d0637c2c2e Mon Sep 17 00:00:00 2001 From: dvkt Date: Mon, 16 Dec 2019 21:40:49 -0800 Subject: [PATCH] tweaks --- src/fetch.rs | 0 src/main.rs | 1 - src/menu.rs | 3 --- src/ui.rs | 1 - 4 files changed, 5 deletions(-) delete mode 100644 src/fetch.rs diff --git a/src/fetch.rs b/src/fetch.rs deleted file mode 100644 index e69de29..0000000 diff --git a/src/main.rs b/src/main.rs index f5a3039..d38759f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,7 +2,6 @@ extern crate termion; -mod fetch; mod gopher; mod menu; mod types; diff --git a/src/menu.rs b/src/menu.rs index 96598ff..faa6ea0 100644 --- a/src/menu.rs +++ b/src/menu.rs @@ -2,7 +2,6 @@ use gopher::Type; use std::io; use ui::{Action, Key, View}; -#[derive(Debug)] pub struct MenuView { pub input: String, // user's inputted value pub menu: Menu, // data @@ -10,14 +9,12 @@ pub struct MenuView { pub scroll: usize, // scrolling offset } -#[derive(Debug)] pub struct Menu { url: String, // gopher url lines: Vec, // lines raw: String, // raw gopher response } -#[derive(Debug)] pub struct Line { name: String, url: String, diff --git a/src/ui.rs b/src/ui.rs index ab3795d..b70c39e 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -8,7 +8,6 @@ use gopher::Type; use menu::MenuView; pub type Key = termion::event::Key; -pub type Error = io::Error; pub struct UI { pages: Vec>,