anyhow used
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
// src/tui/terminal/event_reader.rs
|
||||
|
||||
use crossterm::event::{self, Event};
|
||||
use anyhow::{Context, Result};
|
||||
|
||||
pub struct EventReader;
|
||||
|
||||
@@ -9,7 +10,7 @@ impl EventReader {
|
||||
Self
|
||||
}
|
||||
|
||||
pub fn read_event(&self) -> Result<Event, Box<dyn std::error::Error>> {
|
||||
pub fn read_event(&self) -> Result<Event> {
|
||||
Ok(event::read()?)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user