From 0c393bc860ae1019513ed0d8b02b34e7457f41a5 Mon Sep 17 00:00:00 2001 From: Vladan Popovic Date: Sun, 7 Jan 2024 18:25:34 +0100 Subject: [PATCH] remove unneeded var --- src/git/repo.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/git/repo.rs b/src/git/repo.rs index 449e291..b5bcc8a 100644 --- a/src/git/repo.rs +++ b/src/git/repo.rs @@ -11,8 +11,7 @@ impl SocialRepo { Repository::open(path) .map(|repo| Self { repo }) .map_err(|_| { - let err = "fatal: not a git repository"; - SocialError::from(err) + SocialError::from("fatal: not a git repository") }) }