Skip to content

Commit 9a07127

Browse files
authored
Fixes error while running the cargo clippy --all-targets -- -D warning (rust-lang#15843)
Fixes rust-lang#15842 Before -: <img width="895" height="701" alt="Screenshot From 2025-08-16 01-15-35" src="https://github.com/user-attachments/assets/5e8daca4-5fad-4fc7-bb12-f67288061704" /> After the fix-: <img width="831" height="107" alt="Screenshot From 2025-08-16 01-28-50" src="https://github.com/user-attachments/assets/eb03c852-69a0-44a3-9562-f8a99dae4033" />
2 parents d1bbe63 + 0e540b2 commit 9a07127

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)