mirror of
https://github.com/codewhale-hq/Codewhale.git
synced 2026-11-08 17:10:50 -10:00
fix(dependencies): read the tool name only where a replay can pin it
host_tool_available's name is consulted only under a conformance replay (test builds, unix), so the release build failed workspace Clippy with unused_variables (batch 8 clippy log). Bind it explicitly outside that cfg. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: CodeWhale Bot <[email protected]>
This commit is contained in:
1 parent
69aa57e6d4
commit
0989ccb307
1 file changed
+3
@@ -282,6 +282,9 @@ pub(crate) fn host_tool_available(tool: &str, probe: impl FnOnce() -> bool) -> b
|
||||
}) {
|
||||
return available;
|
||||
}
|
||||
// Only a conformance replay reads the name.
|
||||
#[cfg(not(all(test, unix)))]
|
||||
let _ = tool;
|
||||
probe()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user