From db84eaac5ceaa0105422c3185e08a7637e8d97e0 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 28 Feb 2022 13:51:18 -0500 Subject: convert to std::sync::Mutex and remove a lot of unnecessary async --- src/shell/history/entry.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/shell/history/entry.rs') diff --git a/src/shell/history/entry.rs b/src/shell/history/entry.rs index ac3a279..3b4717b 100644 --- a/src/shell/history/entry.rs +++ b/src/shell/history/entry.rs @@ -227,13 +227,13 @@ impl Entry { out.reset_attributes(); } - pub async fn send_input(&self, bytes: Vec) { + pub fn send_input(&self, bytes: Vec) { if self.running() { self.input.send(bytes).unwrap(); } } - pub async fn resize(&mut self, size: (u16, u16)) { + pub fn resize(&mut self, size: (u16, u16)) { if self.running() { self.resize.send(size).unwrap(); self.vt.set_size(size.0, size.1); @@ -338,10 +338,10 @@ impl Entry { } } - pub async fn finish( + pub fn finish( &mut self, env: Env, - event_w: crate::shell::event::Writer, + event_w: &crate::shell::event::Writer, ) { self.state = State::Exited(ExitInfo::new(env.latest_status())); self.env = env; -- cgit v1.2.3-54-g00ecf