1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2025-04-07 17:43:03 -04:00

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.
This commit is contained in:
Kirill Chibisov 2022-02-09 19:25:36 +03:00
parent d43196297d
commit 02a5a88946
3 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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

View file

@ -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)]