1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05: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 committed by GitHub
parent 59f16f6b15
commit 8afeb2c602
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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)]