aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/repository/vcs/git_driver.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/repository/vcs/git_driver.rs')
-rw-r--r--crates/shirabe/src/repository/vcs/git_driver.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/shirabe/src/repository/vcs/git_driver.rs b/crates/shirabe/src/repository/vcs/git_driver.rs
index 99275e98..bd56766b 100644
--- a/crates/shirabe/src/repository/vcs/git_driver.rs
+++ b/crates/shirabe/src/repository/vcs/git_driver.rs
@@ -202,7 +202,7 @@ impl GitDriver {
&& let Some(caps) = Preg::match3(php_regex!(r"{^\* +(\S+)}"), branch)
&& let Some(name) = caps.get(&CaptureKey::ByIndex(1))
{
- self.root_identifier = Some(name.clone());
+ self.root_identifier = Some(name.to_string());
break;
}
}
@@ -321,7 +321,7 @@ impl GitDriver {
self.tags
.as_mut()
.unwrap()
- .insert(name.clone(), hash.clone());
+ .insert(name.to_string(), hash.to_string());
}
}
}
@@ -358,7 +358,7 @@ impl GitDriver {
)
&& !name.starts_with('-')
{
- branches.insert(name.clone(), hash.clone());
+ branches.insert(name.to_string(), hash.to_string());
}
}