summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Oram <dev@mitmaro.ca>2019-12-27 10:34:31 -0330
committerTim Oram <dev@mitmaro.ca>2019-12-27 10:57:19 -0330
commit9ff7a3d8c02d1450f6e8858c814f89bd7c42cf73 (patch)
treef4c29fe0475fef9e577c766ecd5c3f4f5d16e636
parent157d57fa6bce516556d2762ad783372fd2f5576f (diff)
Remove redundant clone
-rw-r--r--src/show_commit/util.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/show_commit/util.rs b/src/show_commit/util.rs
index 820502b..7a94ec3 100644
--- a/src/show_commit/util.rs
+++ b/src/show_commit/util.rs
@@ -71,7 +71,7 @@ pub fn get_stat_item_segments(status: Delta, to_name: &str, from_name: &str, is_
match status {
Delta::Copied => {
vec![
- LineSegment::new_with_color(status_name.clone().as_str(), color),
+ LineSegment::new_with_color(status_name.as_str(), color),
LineSegment::new_with_color(to_name, DisplayColor::Normal),
LineSegment::new(to_file_indicator),
LineSegment::new_with_color(from_name, DisplayColor::DiffAddColor),