fix warnings

This commit is contained in:
Michael Sippel 2020-12-09 17:56:33 +01:00
parent 4a29d7a5cf
commit 2a79b2753c
Signed by: senvas
GPG key ID: F96CF119C34B64A6
4 changed files with 6 additions and 9 deletions

View file

@ -13,7 +13,7 @@ use {
},
crate::{
view::{View, Observer}
view::{Observer}
}
};

View file

@ -10,9 +10,7 @@ pub mod vec_buffer;
pub mod terminal;
use {
async_std::{
prelude::*, task, stream
},
async_std::{task},
std::{
sync::{Arc, RwLock}
},
@ -90,12 +88,12 @@ async fn main() {
buf.remove(2);
task::sleep(std::time::Duration::from_millis(400)).await;
for x in 0 .. 4 {
for _ in 0 .. 4 {
buf.remove(0);
task::sleep(std::time::Duration::from_millis(400)).await;
}
});
Terminal::show(composite_view.into_outer()).await;
Terminal::show(composite_view.into_outer()).await.ok();
}

View file

@ -2,7 +2,7 @@ use {
std::sync::{Arc, RwLock},
cgmath::Vector2,
crate::{
view::{View, Observer},
view::{View},
port::{ViewPort, InnerViewPort, OuterViewPort},
terminal::{TerminalAtom}
}

View file

@ -1,7 +1,6 @@
use {
std::io::{Write, stdout, stdin},
async_std::stream::{Stream, StreamExt},
cgmath::Vector2,
termion::{
raw::IntoRawMode,
@ -83,7 +82,7 @@ impl Terminal {
write!(out, "{}", atom.c.unwrap_or(' '))?;
} else {
write!(out, "{} ", termion::style::Reset);
write!(out, "{} ", termion::style::Reset)?;
}
}