Use log crate instead of dbg!

This commit is contained in:
Héctor Ramón Jiménez 2019-10-07 04:05:40 +02:00
parent c9510db551
commit c9da3a10d9
3 changed files with 3 additions and 4 deletions

View file

@ -40,7 +40,6 @@ pub trait UserInterface {
let mut cache = Some(iced_winit::Cache::default());
let mut events = Vec::new();
let mut redraws = 0;
let mut primitive = Primitive::None;
window.request_redraw();
@ -90,11 +89,8 @@ pub trait UserInterface {
event: WindowEvent::RedrawRequested,
..
} => {
println!("Redrawing {}", redraws);
renderer.draw(&mut target, &primitive);
redraws += 1;
// TODO: Handle animations!
// Maybe we can use `ControlFlow::WaitUntil` for this.
}