From 295142e4989cad09c9c87de15c650d35b6c31dc8 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 19 Sep 2021 17:44:44 +0300 Subject: chore: drop unnecessary &, as pointed out by clippy Sponsored-by: author --- src/git.rs | 2 +- src/tag.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/git.rs b/src/git.rs index 061ed61..26ed4cd 100644 --- a/src/git.rs +++ b/src/git.rs @@ -4,7 +4,7 @@ use std::path::Path; use std::process::Command; pub fn tag>(dirname: P, tag_name: &str, msg: &str) -> Result<(), BumperError> { - git(dirname.as_ref(), &["tag", "-am", &msg, &tag_name])?; + git(dirname.as_ref(), &["tag", "-am", msg, tag_name])?; Ok(()) } diff --git a/src/tag.rs b/src/tag.rs index 5a6b4df..a66e0a1 100644 --- a/src/tag.rs +++ b/src/tag.rs @@ -86,7 +86,7 @@ fn parse_template(t: &str) -> Result, BumperError> { // There was a previous pattern. Is it a fixed string? if let Pattern::Fixed(a) = last { let mut ab = a.clone(); - ab.push_str(&b); + ab.push_str(b); result.push(Pattern::Fixed(ab)) } else { result.push(last); -- cgit v1.2.1