summaryrefslogtreecommitdiffstats
path: root/src/shell/history/pty.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/history/pty.rs
parent28953168e80183fe11d2031369b48022eefd37e5 (diff)
downloadnbsh-5dfd1f7a7734038eed310729e907313e7b499d68.tar.gz
nbsh-5dfd1f7a7734038eed310729e907313e7b499d68.zip
cleanups
Diffstat (limited to 'src/shell/history/pty.rs')
-rw-r--r--src/shell/history/pty.rs6
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<()>,