diff options
author | Jesse Luehrs <doy@tozt.net> | 2022-02-28 13:51:18 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2022-02-28 13:51:18 -0500 |
commit | db84eaac5ceaa0105422c3185e08a7637e8d97e0 (patch) | |
tree | ba5d33421da410a478194b2245b89137fd7ba005 /src/shell/history/entry.rs | |
parent | c7a9ff6f42f8bab6f3cddc894a9d16812ce4095d (diff) | |
download | nbsh-db84eaac5ceaa0105422c3185e08a7637e8d97e0.tar.gz nbsh-db84eaac5ceaa0105422c3185e08a7637e8d97e0.zip |
convert to std::sync::Mutex and remove a lot of unnecessary async
Diffstat (limited to 'src/shell/history/entry.rs')
-rw-r--r-- | src/shell/history/entry.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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<u8>) { + pub fn send_input(&self, bytes: Vec<u8>) { 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; |