diff --git a/internal/backends/winit/winitwindowadapter.rs b/internal/backends/winit/winitwindowadapter.rs index 6fd17f3b939..f912a3a2308 100644 --- a/internal/backends/winit/winitwindowadapter.rs +++ b/internal/backends/winit/winitwindowadapter.rs @@ -153,21 +153,21 @@ impl WinitWindowOrNone { } } - fn set_window_disabled(&self, disabled: bool) { + fn set_window_disabled(&self, _disabled: bool) { match self { Self::HasWindow(_window) => { #[cfg(target_family = "windows")] - _window.set_enable(!disabled); + _window.set_enable(!_disabled); } Self::None(..) => { /* Winit doesn't have an attribute for this. */ } } } - fn set_skip_taskbar(&self, disabled: bool) { + fn set_skip_taskbar(&self, _disabled: bool) { match self { Self::HasWindow(_window) => { #[cfg(target_family = "windows")] - _window.set_skip_taskbar(disabled); + _window.set_skip_taskbar(_disabled); } Self::None(..) => { /* Winit doesn't have an attribute for this. */ } }