summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-09-19 14:51:37 +0000
committerLars Wirzenius <liw@liw.fi>2021-09-19 14:51:37 +0000
commit676c43f0e5da9c06f7f587b84e0bc6dc98c5ba3d (patch)
tree5d5c6cb7a43771f4223fda2aa0980fc2a78a0c06 /src
parenta189b49e4989d60bf6adbaf19f0e0489cd964d8e (diff)
parente5ce55667326fadf260f97b3ba189f82566f12f4 (diff)
downloadbumper-rs-main.tar.gz
Merge branch 'cleanup' into 'main'HEADmain
chore: drop unnecessary &, as pointed out by clippy See merge request larswirzenius/bumper!24
Diffstat (limited to 'src')
-rw-r--r--src/git.rs2
-rw-r--r--src/tag.rs2
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<P: AsRef<Path>>(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<Vec<Pattern>, 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);