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::{
|
crate::{
|
||||||
view::{View, Observer}
|
view::{Observer}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -10,9 +10,7 @@ pub mod vec_buffer;
|
||||||
pub mod terminal;
|
pub mod terminal;
|
||||||
|
|
||||||
use {
|
use {
|
||||||
async_std::{
|
async_std::{task},
|
||||||
prelude::*, task, stream
|
|
||||||
},
|
|
||||||
std::{
|
std::{
|
||||||
sync::{Arc, RwLock}
|
sync::{Arc, RwLock}
|
||||||
},
|
},
|
||||||
|
@ -90,12 +88,12 @@ async fn main() {
|
||||||
buf.remove(2);
|
buf.remove(2);
|
||||||
task::sleep(std::time::Duration::from_millis(400)).await;
|
task::sleep(std::time::Duration::from_millis(400)).await;
|
||||||
|
|
||||||
for x in 0 .. 4 {
|
for _ in 0 .. 4 {
|
||||||
buf.remove(0);
|
buf.remove(0);
|
||||||
task::sleep(std::time::Duration::from_millis(400)).await;
|
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},
|
std::sync::{Arc, RwLock},
|
||||||
cgmath::Vector2,
|
cgmath::Vector2,
|
||||||
crate::{
|
crate::{
|
||||||
view::{View, Observer},
|
view::{View},
|
||||||
port::{ViewPort, InnerViewPort, OuterViewPort},
|
port::{ViewPort, InnerViewPort, OuterViewPort},
|
||||||
terminal::{TerminalAtom}
|
terminal::{TerminalAtom}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
|
|
||||||
use {
|
use {
|
||||||
std::io::{Write, stdout, stdin},
|
std::io::{Write, stdout, stdin},
|
||||||
async_std::stream::{Stream, StreamExt},
|
|
||||||
cgmath::Vector2,
|
cgmath::Vector2,
|
||||||
termion::{
|
termion::{
|
||||||
raw::IntoRawMode,
|
raw::IntoRawMode,
|
||||||
|
@ -83,7 +82,7 @@ impl Terminal {
|
||||||
|
|
||||||
write!(out, "{}", atom.c.unwrap_or(' '))?;
|
write!(out, "{}", atom.c.unwrap_or(' '))?;
|
||||||
} else {
|
} else {
|
||||||
write!(out, "{} ", termion::style::Reset);
|
write!(out, "{} ", termion::style::Reset)?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue