summaryrefslogtreecommitdiffstats
path: root/src/git.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/git.rs')
-rw-r--r--src/git.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/git.rs b/src/git.rs
index 52248f8..136a72b 100644
--- a/src/git.rs
+++ b/src/git.rs
@@ -80,7 +80,7 @@ impl GitStatus {
git_string.push('(');
if let Some(branch) = &self.branch {
- git_string.push_str(&branch);
+ git_string.push_str(branch);
} else {
// Detached head
git_string.push_str(":HEAD");