fix warnings
This commit is contained in:
parent
4a29d7a5cf
commit
2a79b2753c
4 changed files with 6 additions and 9 deletions
|
@ -13,7 +13,7 @@ use {
|
|||
},
|
||||
|
||||
crate::{
|
||||
view::{View, Observer}
|
||||
view::{Observer}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ use {
|
|||
std::sync::{Arc, RwLock},
|
||||
cgmath::Vector2,
|
||||
crate::{
|
||||
view::{View, Observer},
|
||||
view::{View},
|
||||
port::{ViewPort, InnerViewPort, OuterViewPort},
|
||||
terminal::{TerminalAtom}
|
||||
}
|
||||
|
|
|
@ -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)?;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue