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:
parent
d43196297d
commit
02a5a88946
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…
Add table
Reference in a new issue