Skip to content

Commit 6971d3a

Browse files
committed
Merge bitcoin/bitcoin#32144: lint: Remove needless borrow to fix Clippy warning
e3ce2bd Remove needless borrow to fix Clippy warning (dennsikl) Pull request description: Pull Request Description **Summary** Removes a needless borrow in `test/lint/test_runner/src/main.rs` that triggered a Clippy warning (`needless_borrows_for_generic_args`). This minor refactoring makes the code cleaner without changing functionality. **Rationale** - Eliminates a Clippy warning when running: ```bash cargo clippy --manifest-path test/lint/test_runner/Cargo.toml -- -D warnings ACKs for top commit: maflcko: lgtm ACK e3ce2bd kevkevinpal: ACK [e3ce2bd](bitcoin/bitcoin@e3ce2bd) TheCharlatan: ACK e3ce2bd Tree-SHA512: 9f3e07b45df0af6ad4bf87216b257108cc9b50b8e6bc591cac58b5cf6f78ebaeff27181cb0e8a6bc401626e1c707b925315f2e5ebd8dd5216e04c95d70237f85
2 parents f1d129d + e3ce2bd commit 6971d3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/lint/test_runner/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ fn lint_scripted_diff() -> LintResult {
250250

251251
fn lint_commit_msg() -> LintResult {
252252
let mut good = true;
253-
let commit_hashes = check_output(git().args(&[
253+
let commit_hashes = check_output(git().args([
254254
"-c",
255255
"log.showSignature=false",
256256
"log",

0 commit comments

Comments
 (0)