From 546c8ca344afe67add59af65b5548d98975d3687 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Tue, 22 Aug 2023 09:49:54 -0500 Subject: Handle switch from crossterm::Result to io::Result --- helix-term/src/application.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'helix-term/src') 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(&mut self, input_stream: &mut S) where - S: Stream> + Unpin, + S: Stream> + Unpin, { self.render().await; @@ -301,7 +301,7 @@ impl Application { pub async fn event_loop_until_idle(&mut self, input_stream: &mut S) -> bool where - S: Stream> + Unpin, + S: Stream> + Unpin, { loop { if self.editor.should_close() { @@ -615,10 +615,7 @@ impl Application { false } - pub async fn handle_terminal_events( - &mut self, - event: Result, - ) { + pub async fn handle_terminal_events(&mut self, event: std::io::Result) { let mut cx = crate::compositor::Context { editor: &mut self.editor, jobs: &mut self.jobs, @@ -1159,7 +1156,7 @@ impl Application { pub async fn run(&mut self, input_stream: &mut S) -> Result where - S: Stream> + Unpin, + S: Stream> + Unpin, { self.claim_term().await?; -- cgit v1.2.3-70-g09d2