Merge bitcoin/bitcoin#32144: lint: Remove needless borrow to fix Clippy warning

e3ce2bd982 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 e3ce2bd982
  kevkevinpal:
    ACK [e3ce2bd](e3ce2bd982)
  TheCharlatan:
    ACK e3ce2bd982

Tree-SHA512: 9f3e07b45df0af6ad4bf87216b257108cc9b50b8e6bc591cac58b5cf6f78ebaeff27181cb0e8a6bc401626e1c707b925315f2e5ebd8dd5216e04c95d70237f85
This commit is contained in:
merge-script 2025-03-27 15:00:11 +08:00
commit 6971d3a0f5
No known key found for this signature in database
GPG key ID: 2EEB9F5CC09526C1

View file

@ -250,7 +250,7 @@ fn lint_scripted_diff() -> LintResult {
fn lint_commit_msg() -> LintResult {
let mut good = true;
let commit_hashes = check_output(git().args(&[
let commit_hashes = check_output(git().args([
"-c",
"log.showSignature=false",
"log",