mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-19 12:10:19 +01:00
Merge bitcoin/bitcoin#32144: lint: Remove needless borrow to fix Clippy warning
e3ce2bd982Remove 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 ACKe3ce2bd982kevkevinpal: ACK [e3ce2bd](e3ce2bd982) TheCharlatan: ACKe3ce2bd982Tree-SHA512: 9f3e07b45df0af6ad4bf87216b257108cc9b50b8e6bc591cac58b5cf6f78ebaeff27181cb0e8a6bc401626e1c707b925315f2e5ebd8dd5216e04c95d70237f85
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user