summaryrefslogtreecommitdiffstats
path: root/src/shell/mod.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-02-26 18:08:40 -0500
committerJesse Luehrs <doy@tozt.net>2022-02-26 18:08:40 -0500
commitdfd5ebfa25d799399de0d15cb38ba47f5069647b (patch)
tree262c8b27621507bde8ab292bcd1b1fa04b44ca2f /src/shell/mod.rs
parent07ed5629fff12ccb95216f7b07c91bb6e8bbfbc7 (diff)
downloadnbsh-dfd5ebfa25d799399de0d15cb38ba47f5069647b.tar.gz
nbsh-dfd5ebfa25d799399de0d15cb38ba47f5069647b.zip
reduce typing
Diffstat (limited to 'src/shell/mod.rs')
-rw-r--r--src/shell/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shell/mod.rs b/src/shell/mod.rs
index c187272..88eb63e 100644
--- a/src/shell/mod.rs
+++ b/src/shell/mod.rs
@@ -9,7 +9,7 @@ mod history;
mod prelude;
mod readline;
-pub async fn main() -> anyhow::Result<i32> {
+pub async fn main() -> Result<i32> {
let mut input = textmode::blocking::Input::new()?;
let mut output = textmode::Output::new().await?;
@@ -205,7 +205,7 @@ pub struct Shell {
}
impl Shell {
- pub fn new(offset: time::UtcOffset) -> anyhow::Result<Self> {
+ pub fn new(offset: time::UtcOffset) -> Result<Self> {
let mut env = Env::new()?;
env.set_var("SHELL", std::env::current_exe()?);
env.set_var("TERM", "screen");
@@ -225,7 +225,7 @@ impl Shell {
pub async fn render(
&self,
out: &mut impl textmode::Textmode,
- ) -> anyhow::Result<()> {
+ ) -> Result<()> {
out.clear();
out.write(&vt100::Parser::default().screen().input_mode_formatted());
match self.scene {