diff options
author | Jesse Luehrs <doy@tozt.net> | 2022-01-08 19:53:21 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2022-01-08 19:53:21 -0500 |
commit | 5dfd1f7a7734038eed310729e907313e7b499d68 (patch) | |
tree | eb12a29765308b0987012d71ad91e092dacbe036 /src/shell/event.rs | |
parent | 28953168e80183fe11d2031369b48022eefd37e5 (diff) | |
download | nbsh-5dfd1f7a7734038eed310729e907313e7b499d68.tar.gz nbsh-5dfd1f7a7734038eed310729e907313e7b499d68.zip |
cleanups
Diffstat (limited to 'src/shell/event.rs')
-rw-r--r-- | src/shell/event.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shell/event.rs b/src/shell/event.rs index 0343cdb..52b7acf 100644 --- a/src/shell/event.rs +++ b/src/shell/event.rs @@ -17,12 +17,12 @@ impl Reader { pub fn new( input: async_std::channel::Receiver<Event>, ) -> async_std::sync::Arc<Self> { - let this = std::sync::Arc::new(Self { + let this = async_std::sync::Arc::new(Self { pending: async_std::sync::Mutex::new(Pending::new()), cvar: async_std::sync::Condvar::new(), }); { - let this = std::sync::Arc::clone(&this); + let this = async_std::sync::Arc::clone(&this); async_std::task::spawn(async move { while let Ok(event) = input.recv().await { this.new_event(Some(event)).await; |