summaryrefslogtreecommitdiffstats
path: root/src/shell/event.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-01-08 19:53:21 -0500
committerJesse Luehrs <doy@tozt.net>2022-01-08 19:53:21 -0500
commit5dfd1f7a7734038eed310729e907313e7b499d68 (patch)
treeeb12a29765308b0987012d71ad91e092dacbe036 /src/shell/event.rs
parent28953168e80183fe11d2031369b48022eefd37e5 (diff)
downloadnbsh-5dfd1f7a7734038eed310729e907313e7b499d68.tar.gz
nbsh-5dfd1f7a7734038eed310729e907313e7b499d68.zip
cleanups
Diffstat (limited to 'src/shell/event.rs')
-rw-r--r--src/shell/event.rs4
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;