Fix broken event module imports

This commit is contained in:
mars 2023-04-11 16:41:50 -04:00
parent ea7af04e52
commit 6d9921fad6
1 changed files with 2 additions and 2 deletions

View File

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