pull/6/head
dvkt 5 years ago
parent f086b61773
commit 76d3a977bd

@ -2,7 +2,6 @@
extern crate termion;
mod fetch;
mod gopher;
mod menu;
mod types;

@ -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<Line>, // lines
raw: String, // raw gopher response
}
#[derive(Debug)]
pub struct Line {
name: String,
url: String,

@ -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<Box<dyn View>>,

Loading…
Cancel
Save