diff options
Diffstat (limited to 'src/shell/history')
-rw-r--r-- | src/shell/history/mod.rs | 6 | ||||
-rw-r--r-- | src/shell/history/pty.rs | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/shell/history/mod.rs b/src/shell/history/mod.rs index 6d38891..e7202be 100644 --- a/src/shell/history/mod.rs +++ b/src/shell/history/mod.rs @@ -26,7 +26,7 @@ impl History { focus: Option<usize>, scrolling: bool, offset: time::UtcOffset, - ) -> anyhow::Result<()> { + ) -> Result<()> { let mut used_lines = repl_lines; let mut cursor = None; for (idx, mut entry) in @@ -87,7 +87,7 @@ impl History { cmdline: &str, env: &Env, event_w: crate::shell::event::Writer, - ) -> anyhow::Result<usize> { + ) -> Result<usize> { let (input_w, input_r) = tokio::sync::mpsc::unbounded_channel(); let (resize_w, resize_r) = tokio::sync::mpsc::unbounded_channel(); @@ -279,7 +279,7 @@ async fn spawn_commands( pty: &pty::Pty, env: &mut Env, event_w: crate::shell::event::Writer, -) -> anyhow::Result<std::process::ExitStatus> { +) -> Result<std::process::ExitStatus> { enum Res { Read(crate::runner::Event), Exit(std::io::Result<std::process::ExitStatus>), diff --git a/src/shell/history/pty.rs b/src/shell/history/pty.rs index 58f872c..e96da41 100644 --- a/src/shell/history/pty.rs +++ b/src/shell/history/pty.rs @@ -12,7 +12,7 @@ impl Pty { input_r: tokio::sync::mpsc::UnboundedReceiver<Vec<u8>>, resize_r: tokio::sync::mpsc::UnboundedReceiver<(u16, u16)>, event_w: crate::shell::event::Writer, - ) -> anyhow::Result<Self> { + ) -> Result<Self> { let (close_w, close_r) = tokio::sync::mpsc::unbounded_channel(); let pty = pty_process::Pty::new()?; @@ -35,7 +35,7 @@ impl Pty { pub fn spawn( &self, mut cmd: pty_process::Command, - ) -> anyhow::Result<tokio::process::Child> { + ) -> Result<tokio::process::Child> { Ok(cmd.spawn(&*self.pts)?) } |