Skip to content

Commit 0d60709

Browse files
blackaxgitclaude
andcommitted
fix(hook): resolve clippy warnings in integration tests
Rename _temp_dir to temp_dir (avoid used-underscore-binding) and remove needless borrow on temp_home. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7f0b4a7 commit 0d60709

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

crates/clx-hook/tests/integration.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ fn run_hook(input: &str) -> (String, String) {
1414

1515
// Use a unique temp directory per invocation to avoid parallel test interference.
1616
// Keep `_temp_dir` alive until end of function so the directory isn't cleaned up early.
17-
let _temp_dir = tempfile::tempdir().expect("failed to create temp dir");
18-
let temp_home = _temp_dir.path();
17+
let temp_dir = tempfile::tempdir().expect("failed to create temp dir");
18+
let temp_home = temp_dir.path();
1919

2020
let mut child = Command::new(binary)
21-
.env("HOME", &temp_home)
21+
.env("HOME", temp_home)
2222
.env("CLX_LOG", "error") // Suppress log noise
2323
.stdin(Stdio::piped())
2424
.stdout(Stdio::piped())

0 commit comments

Comments
 (0)