wezterm-gui: Suppress unused build-dependency warning on anyhow (used on some targets) (#8367)

`wezterm-gui`'s `build.rs` uses `anyhow` on windows and macos. On other
platforms, such as Linux, it produces a warning about the unused build
dependency.

`wezterm-gui` already needs it as a dependency, so removing it as a
build dependency doesn't really help anything.

Thus, rather than encode the targets that use it, add a
```rust
use anyhow as _;
```
to suppress the warning by making it "used" everywhere.
This commit is contained in:
Josh Triplett authored and GitHub committed 2026-11-21 00:24:03 +01:00
1 parent 630ba680e5
commit ee6f3044d0
1 file changed
+3
+3
View File
@@ -1,3 +1,6 @@
// Suppress warnings about `anyhow` going unused; the uses are target-specific.
use anyhow as _;
fn main() {
println!("cargo:rerun-if-changed=build.rs");