Commit c1a7d5b
Fix unused variable warning on Windows in rust/build/in_process.rs (#2471)
The `executable: bool` parameter of `install_cached_file_path` is only
read inside a `#[cfg(unix)]` block (used to chmod extracted binaries),
so it is reported as unused on non-Unix targets. This fails downstream
consumers building the crate from main with `RUSTFLAGS=-D warnings`.
Add an explicit `#[cfg(not(unix))] let _ = executable;` to mark the
parameter used on those targets, without changing Unix behavior.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>1 parent 1cc72da commit c1a7d5b
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
577 | 583 | | |
578 | 584 | | |
579 | 585 | | |
| |||
0 commit comments