aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.builds/freebsd.yml4
-rw-r--r--.builds/linux.yml4
-rw-r--r--alacritty/src/main.rs2
3 files changed, 5 insertions, 5 deletions
diff --git a/.builds/freebsd.yml b/.builds/freebsd.yml
index 0f170802..144872f1 100644
--- a/.builds/freebsd.yml
+++ b/.builds/freebsd.yml
@@ -33,7 +33,7 @@ tasks:
cargo clippy --all-targets
- feature-wayland: |
cd alacritty/alacritty
- cargo test --no-default-features --features=wayland
+ RUSTFLAGS="-D warnings" cargo test --no-default-features --features=wayland
- feature-x11: |
cd alacritty/alacritty
- cargo test --no-default-features --features=x11
+ RUSTFLAGS="-D warnings" cargo test --no-default-features --features=x11
diff --git a/.builds/linux.yml b/.builds/linux.yml
index 8098051c..6a59e25c 100644
--- a/.builds/linux.yml
+++ b/.builds/linux.yml
@@ -36,7 +36,7 @@ tasks:
cargo clippy --all-targets
- feature-wayland: |
cd alacritty/alacritty
- cargo test --no-default-features --features=wayland
+ RUSTFLAGS="-D warnings" cargo test --no-default-features --features=wayland
- feature-x11: |
cd alacritty/alacritty
- cargo test --no-default-features --features=x11
+ RUSTFLAGS="-D warnings" cargo test --no-default-features --features=x11
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)]