From 446ffb88c7b67d61d41be084fa724f84fa055e22 Mon Sep 17 00:00:00 2001 From: Jannik <32144358+mozzieongit@users.noreply.github.com> Date: Fri, 24 Sep 2021 18:03:37 +0200 Subject: Resolve clippy warnings (#187) * refactor: nest or patterns * refactor: fix clippy lint names * refactor: remove unnecessary wraps * style: apply cargo fmt --- src/command/init.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/command/init.rs') diff --git a/src/command/init.rs b/src/command/init.rs index d0f31f34..b6fbe4b3 100644 --- a/src/command/init.rs +++ b/src/command/init.rs @@ -1,4 +1,3 @@ -use eyre::Result; use structopt::StructOpt; #[derive(StructOpt)] @@ -20,11 +19,10 @@ fn init_bash() { } impl Cmd { - pub fn run(&self) -> Result<()> { + pub fn run(&self) { match self { Self::Zsh => init_zsh(), Self::Bash => init_bash(), } - Ok(()) } } -- cgit v1.3.1