Skip to content

Commit eb3fe3a

Browse files
tdiclaude
andcommitted
Fix clippy warnings in build.rs
- Remove unnecessary borrows in Command::args() calls - Change &["..."] to ["..."] as suggested by clippy - Fixes CI failures due to clippy::needless-borrows-for-generic-args 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1782df6 commit eb3fe3a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::process::Command;
33
fn main() {
44
// Try to get git describe output for detailed version
55
let git_describe = Command::new("git")
6-
.args(&["describe", "--tags", "--always", "--dirty"])
6+
.args(["describe", "--tags", "--always", "--dirty"])
77
.output()
88
.ok()
99
.and_then(|output| {
@@ -17,7 +17,7 @@ fn main() {
1717

1818
// Try to get git commit hash
1919
let git_hash = Command::new("git")
20-
.args(&["rev-parse", "--short", "HEAD"])
20+
.args(["rev-parse", "--short", "HEAD"])
2121
.output()
2222
.ok()
2323
.and_then(|output| {

0 commit comments

Comments
 (0)