From 83973f8a1a7b7f68edda3ea931972104fbf16cef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Fri, 26 Nov 2021 16:51:40 +0100 Subject: [PATCH] Fix unnecessary to_string() --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index e96f22e..f1ba587 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -633,7 +633,7 @@ fn show_single_repo_status(path: &Path, is_worktree: bool) { if let Err(error) = repo_handle { if error.kind == RepoErrorKind::NotFound { - print_error(&"Directory is not a git directory".to_string()); + print_error("Directory is not a git directory"); } else { print_error(&format!("Opening repository failed: {}", error)); }