From 95c4c859e920e075616fc49d877f6d70cd56d70f Mon Sep 17 00:00:00 2001 From: James Campos Date: Sat, 31 Jul 2021 04:15:54 -0700 Subject: internal --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 4ed14b2..57aa177 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,6 @@ use crossterm::{ cursor, - event::{DisableMouseCapture, EnableMouseCapture, Event}, + event::{self, DisableMouseCapture, EnableMouseCapture, Event}, queue, style::{self, Color::Rgb, Colors, Print, SetColors}, terminal, @@ -153,7 +153,7 @@ impl Bk<'_> { bk } - fn run(&mut self) -> crossterm::Result<()> { + fn run(&mut self) -> io::Result<()> { let mut stdout = io::stdout(); queue!( stdout, @@ -180,11 +180,11 @@ impl Bk<'_> { render(self); loop { - match crossterm::event::read()? { + match event::read()? { Event::Key(e) => self.view.on_key(self, e.code), Event::Mouse(e) => { // XXX idk seems lame - if e.kind == crossterm::event::MouseEventKind::Moved { + if e.kind == event::MouseEventKind::Moved { continue; } self.view.on_mouse(self, e); -- cgit v1.2.3