Archived
1
0
forked from mars/breed

Fix broken event module imports

This commit is contained in:
mars 2023-04-11 16:41:50 -04:00
parent ea7af04e52
commit 6d9921fad6

View File

@ -22,7 +22,7 @@ use std::io::{ stdin, stdout, Read, Stdout, Write };
use crossterm::{ use crossterm::{
cursor, cursor,
event::{Event, KeyCode, KeyEvent} event::{Event, KeyCode, KeyEvent},
terminal, terminal,
ExecutableCommand, ExecutableCommand,
Result Result
@ -279,7 +279,7 @@ impl State {
fn screen_main(stdout: &mut Stdout, mut state: State) -> Result<()> { fn screen_main(stdout: &mut Stdout, mut state: State) -> Result<()> {
while !state.quit { while !state.quit {
state.draw(stdout)?; state.draw(stdout)?;
let event = event::read()?; let event = crossterm::event::read()?;
state.on_event(event); state.on_event(event);
} }