commit 111602bba6afc7b29ab496d13d6b5762d1b6de49
parent 906950beb34433860a349437c98ab31e66e37c98
Author: cy6erlion <dev@merely.tech>
Date: Tue, 12 Jan 2021 21:52:03 +0200
fix cargo warnings
Diffstat:
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/main.rs b/src/main.rs
@@ -1,10 +1,9 @@
use clap::{App, Arg, SubCommand};
use cursive::align::HAlign;
-use cursive::event::{EventResult, Key};
-use cursive::theme::{BaseColor::*, Color::*, PaletteColor::*};
+use cursive::event::EventResult;
use cursive::traits::With;
use cursive::traits::*;
-use cursive::views::{Dialog, OnEventView, Panel, SelectView, TextContent, TextView};
+use cursive::views::{Dialog, OnEventView, SelectView, TextView};
use cursive::Cursive;
mod fetch;
@@ -101,7 +100,7 @@ fn main() -> Result<(), std::io::Error> {
let mut index_data = String::new();
let index_file = File::open(&storage.index_file_path).expect("Unable to open file");
let mut buffer_reader = BufReader::new(index_file);
- let mut read_more_dots = "";
+ let mut _read_more_dots = "";
// Let's put the callback in a separate function to keep it clean,
// but it's not required.