From 8afeb2c602bc479ae2554178ea1ed176a18af8f5 Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Wed, 9 Feb 2022 19:25:36 +0300 Subject: Fix warnings when building only with Wayland feature This commit also makes our CI fail hard when warning encountered when building only for either Wayland or X11. --- alacritty/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alacritty/src') diff --git a/alacritty/src/main.rs b/alacritty/src/main.rs index 70991871..368151b4 100644 --- a/alacritty/src/main.rs +++ b/alacritty/src/main.rs @@ -20,7 +20,7 @@ use std::string::ToString; use std::{fs, process}; use glutin::event_loop::EventLoop as GlutinEventLoop; -#[cfg(not(any(target_os = "macos", windows)))] +#[cfg(all(feature = "x11", not(any(target_os = "macos", windows))))] use glutin::platform::unix::EventLoopWindowTargetExtUnix; use log::info; #[cfg(windows)] -- cgit