diff --git a/mux/src/tmux.rs b/mux/src/tmux.rs index 100c0f5c0..306c6b955 100644 --- a/mux/src/tmux.rs +++ b/mux/src/tmux.rs @@ -35,6 +35,7 @@ impl TmuxCommand for ListAllPanes { fn process_result(&self, domain_id: DomainId, result: &Guarded) -> anyhow::Result<()> { #[derive(Debug)] + #[allow(dead_code)] struct Item { session_id: TmuxSessionId, window_id: TmuxWindowId, diff --git a/wezterm-gui/src/main.rs b/wezterm-gui/src/main.rs index f69a21b0f..c60d963ae 100644 --- a/wezterm-gui/src/main.rs +++ b/wezterm-gui/src/main.rs @@ -75,6 +75,7 @@ struct Opt { /// On Windows, whether to attempt to attach to the parent /// process console to display logging output #[structopt(long = "attach-parent-console")] + #[allow(dead_code)] attach_parent_console: bool, #[structopt(subcommand)] diff --git a/wezterm-gui/src/overlay/quickselect.rs b/wezterm-gui/src/overlay/quickselect.rs index ab901d99a..21bd2f099 100644 --- a/wezterm-gui/src/overlay/quickselect.rs +++ b/wezterm-gui/src/overlay/quickselect.rs @@ -144,7 +144,6 @@ pub struct QuickSelectOverlay { #[derive(Debug)] struct MatchResult { range: Range, - result_index: usize, label: String, } @@ -570,7 +569,6 @@ impl QuickSelectRenderable { let result = MatchResult { range, - result_index, label: label.clone(), }; diff --git a/window/src/egl.rs b/window/src/egl.rs index 775226f39..9e68ba10f 100644 --- a/window/src/egl.rs +++ b/window/src/egl.rs @@ -194,6 +194,7 @@ impl EglWrapper { fn log_config_info(&self, display: ffi::types::EGLDisplay, config: ffi::types::EGLConfig) { #[derive(Debug)] + #[allow(dead_code)] struct ConfigInfo { config: ffi::types::EGLConfig, alpha_size: Option, diff --git a/window/src/os/x11/cursor.rs b/window/src/os/x11/cursor.rs index 56773abba..e2b6ad7f2 100644 --- a/window/src/os/x11/cursor.rs +++ b/window/src/os/x11/cursor.rs @@ -365,8 +365,8 @@ impl CursorInfo { #[derive(Debug)] struct FileHeader { magic: u32, - header: u32, - version: u32, + _header: u32, + _version: u32, ntoc: u32, } const MAGIC: u32 = 0x72756358; @@ -389,8 +389,8 @@ impl CursorInfo { let header = FileHeader { magic: read_u32(&mut file)?, - header: read_u32(&mut file)?, - version: read_u32(&mut file)?, + _header: read_u32(&mut file)?, + _version: read_u32(&mut file)?, ntoc: read_u32(&mut file)?, }; ensure!(