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") }) }