Skip to content

Commit fe1ab1d

Browse files
committed
refactor: clean up publish error context and remove unused variables
1 parent 93c3513 commit fe1ab1d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/testsuite/cargo_add/git_branch/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fn case() {
2121
.file("src/lib.rs", "")
2222
});
2323
let branch = "dev";
24-
let find_head = || (git_repo.head().unwrap().peel_to_commit().unwrap());
24+
let find_head = || git_repo.head().unwrap().peel_to_commit().unwrap();
2525
git_repo.branch(branch, &find_head(), false).unwrap();
2626
let git_url = git_dep.url().to_string();
2727

tests/testsuite/cargo_add/git_rev/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fn case() {
2020
)
2121
.file("src/lib.rs", "")
2222
});
23-
let find_head = || (git_repo.head().unwrap().peel_to_commit().unwrap());
23+
let find_head = || git_repo.head().unwrap().peel_to_commit().unwrap();
2424
let head = find_head().id().to_string();
2525
let git_url = git_dep.url().to_string();
2626

0 commit comments

Comments
 (0)