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:
parent
59f16f6b15
commit
8afeb2c602
3 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)]
|
||||
|
|
Loading…
Reference in a new issue