mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
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 ACKe3ce2bd982
kevkevinpal: ACK [e3ce2bd
](e3ce2bd982
) TheCharlatan: ACKe3ce2bd982
Tree-SHA512: 9f3e07b45df0af6ad4bf87216b257108cc9b50b8e6bc591cac58b5cf6f78ebaeff27181cb0e8a6bc401626e1c707b925315f2e5ebd8dd5216e04c95d70237f85
This commit is contained in:
commit
6971d3a0f5
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue