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/env.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/env.rs') diff --git a/src/env.rs b/src/env.rs index 3a6d8b5..72a69d1 100644 --- a/src/env.rs +++ b/src/env.rs @@ -16,7 +16,7 @@ const __NBSH_LATEST_STATUS: &str = "__NBSH_LATEST_STATUS"; const __NBSH_PREV_PWD: &str = "__NBSH_PREV_PWD"; impl Env { - pub fn new() -> anyhow::Result { + pub fn new() -> Result { let pwd = std::env::current_dir()?; Ok(Self::V0(V0 { pwd: pwd.clone(), @@ -26,7 +26,7 @@ impl Env { })) } - pub fn new_from_env() -> anyhow::Result { + pub fn new_from_env() -> Result { let pwd = std::env::current_dir()?; Ok(Self::V0(V0 { pwd: pwd.clone(), @@ -111,7 +111,7 @@ impl Env { } } - pub fn update(&mut self) -> anyhow::Result<()> { + pub fn update(&mut self) -> Result<()> { let idx = self.idx(); let status = self.latest_status(); let prev_pwd = self.prev_pwd(); -- cgit v1.2.3-54-g00ecf