Skip to content

Commit 2abcd5d

Browse files
committed
style: Make clippy happy
1 parent 7bf26f5 commit 2abcd5d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bin/git-stack/stack.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ fn update_branch(
262262
} else {
263263
repo.find_local_branch(&branch.name)
264264
}
265-
.ok_or_else(|| eyre::eyre!("Can no longer find branch {}", branch).into())
265+
.ok_or_else(|| eyre::eyre!("Can no longer find branch {}", branch))
266266
}
267267

268268
pub fn stack(
@@ -867,7 +867,7 @@ fn git_push_node(
867867
if node.pushable {
868868
let raw_branch = repo
869869
.raw()
870-
.find_branch(&local_branch, git2::BranchType::Local)
870+
.find_branch(local_branch, git2::BranchType::Local)
871871
.expect("all referenced branches exist");
872872
let upstream_set = raw_branch.upstream().is_ok();
873873

@@ -877,7 +877,7 @@ fn git_push_node(
877877
args.push("--set-upstream");
878878
}
879879
args.push(remote);
880-
args.push(&local_branch);
880+
args.push(local_branch);
881881
log::trace!("git {}", args.join(" "),);
882882
if !dry_run {
883883
let status = std::process::Command::new("git").args(&args).status();

0 commit comments

Comments
 (0)