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/history/pty.rs | |
parent | 28953168e80183fe11d2031369b48022eefd37e5 (diff) | |
download | nbsh-5dfd1f7a7734038eed310729e907313e7b499d68.tar.gz nbsh-5dfd1f7a7734038eed310729e907313e7b499d68.zip |
cleanups
Diffstat (limited to 'src/shell/history/pty.rs')
-rw-r--r-- | src/shell/history/pty.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shell/history/pty.rs b/src/shell/history/pty.rs index edf06c2..0fe0942 100644 --- a/src/shell/history/pty.rs +++ b/src/shell/history/pty.rs @@ -8,7 +8,7 @@ pub struct Pty { impl Pty { pub fn new( size: (u16, u16), - entry: &async_std::sync::Arc<async_std::sync::Mutex<super::Entry>>, + entry: &crate::mutex::Mutex<super::Entry>, input_r: async_std::channel::Receiver<Vec<u8>>, resize_r: async_std::channel::Receiver<(u16, u16)>, event_w: async_std::channel::Sender<Event>, @@ -21,7 +21,7 @@ impl Pty { async_std::task::spawn(pty_task( async_std::sync::Arc::clone(&pty), - async_std::sync::Arc::clone(entry), + crate::mutex::clone(entry), input_r, resize_r, close_r, @@ -45,7 +45,7 @@ impl Pty { async fn pty_task( pty: async_std::sync::Arc<pty_process::Pty>, - entry: async_std::sync::Arc<async_std::sync::Mutex<super::Entry>>, + entry: crate::mutex::Mutex<super::Entry>, input_r: async_std::channel::Receiver<Vec<u8>>, resize_r: async_std::channel::Receiver<(u16, u16)>, close_r: async_std::channel::Receiver<()>, |