From ee6f3044d09f83f21a32aead8dac2bc2a32e7fcb Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Fri, 20 Nov 2026 15:24:03 -0800 Subject: [PATCH] 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. --- wezterm-gui/build.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wezterm-gui/build.rs b/wezterm-gui/build.rs index 6ffb3c085..efba65923 100644 --- a/wezterm-gui/build.rs +++ b/wezterm-gui/build.rs @@ -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");