Fix unnecessary to_string()

This commit is contained in:
2021-11-26 16:51:40 +01:00
parent ff32759058
commit 83973f8a1a

View File

@@ -633,7 +633,7 @@ fn show_single_repo_status(path: &Path, is_worktree: bool) {
if let Err(error) = repo_handle { if let Err(error) = repo_handle {
if error.kind == RepoErrorKind::NotFound { if error.kind == RepoErrorKind::NotFound {
print_error(&"Directory is not a git directory".to_string()); print_error("Directory is not a git directory");
} else { } else {
print_error(&format!("Opening repository failed: {}", error)); print_error(&format!("Opening repository failed: {}", error));
} }