aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorMichael Davis2023-08-22 14:49:54 +0000
committerBlaž Hrastnik2023-08-22 20:17:17 +0000
commit546c8ca344afe67add59af65b5548d98975d3687 (patch)
tree58a6738d9a4b5451215c0819e91e9597c7e0ab0e /helix-term/src
parent050c019ccb4473e24f7e55cc941e7178db776fb8 (diff)
Handle switch from crossterm::Result to io::Result
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/application.rs11
1 files changed, 4 insertions, 7 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index 97ba0cc3..8d5b1ceb 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -288,7 +288,7 @@ impl Application {
pub async fn event_loop<S>(&mut self, input_stream: &mut S)
where
- S: Stream<Item = crossterm::Result<crossterm::event::Event>> + Unpin,
+ S: Stream<Item = std::io::Result<crossterm::event::Event>> + Unpin,
{
self.render().await;
@@ -301,7 +301,7 @@ impl Application {
pub async fn event_loop_until_idle<S>(&mut self, input_stream: &mut S) -> bool
where
- S: Stream<Item = crossterm::Result<crossterm::event::Event>> + Unpin,
+ S: Stream<Item = std::io::Result<crossterm::event::Event>> + Unpin,
{
loop {
if self.editor.should_close() {
@@ -615,10 +615,7 @@ impl Application {
false
}
- pub async fn handle_terminal_events(
- &mut self,
- event: Result<CrosstermEvent, crossterm::ErrorKind>,
- ) {
+ pub async fn handle_terminal_events(&mut self, event: std::io::Result<CrosstermEvent>) {
let mut cx = crate::compositor::Context {
editor: &mut self.editor,
jobs: &mut self.jobs,
@@ -1159,7 +1156,7 @@ impl Application {
pub async fn run<S>(&mut self, input_stream: &mut S) -> Result<i32, Error>
where
- S: Stream<Item = crossterm::Result<crossterm::event::Event>> + Unpin,
+ S: Stream<Item = std::io::Result<crossterm::event::Event>> + Unpin,
{
self.claim_term().await?;