From dfd5ebfa25d799399de0d15cb38ba47f5069647b Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 26 Feb 2022 18:08:40 -0500 Subject: reduce typing --- src/shell/history/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/shell/history/mod.rs') 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, 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 { + ) -> Result { 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 { +) -> Result { enum Res { Read(crate::runner::Event), Exit(std::io::Result), -- cgit v1.2.3-54-g00ecf