Do not pass as value needlessly
This commit is contained in:
@@ -936,10 +936,7 @@ pub fn run() {
|
|||||||
let worktree = repo.worktree(
|
let worktree = repo.worktree(
|
||||||
&action_args.name,
|
&action_args.name,
|
||||||
&dir.join(&action_args.name),
|
&dir.join(&action_args.name),
|
||||||
Some(
|
Some(git2::WorktreeAddOptions::new().reference(Some(target_branch.get()))),
|
||||||
git2::WorktreeAddOptions::new()
|
|
||||||
.reference(Some(&target_branch.into_reference())),
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
match worktree {
|
match worktree {
|
||||||
|
|||||||
Reference in New Issue
Block a user