Projects STRLCPY alacritty Commits 02a5a889
🤬
  • 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.
  • Loading...
  • Kirill Chibisov committed 2 years ago
    02a5a889
    1 parent d4319629
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    .builds/freebsd.yml
    skipped 32 lines
    33 33   cargo clippy --all-targets
    34 34   - feature-wayland: |
    35 35   cd alacritty/alacritty
    36  - cargo test --no-default-features --features=wayland
     36 + RUSTFLAGS="-D warnings" cargo test --no-default-features --features=wayland
    37 37   - feature-x11: |
    38 38   cd alacritty/alacritty
    39  - cargo test --no-default-features --features=x11
     39 + RUSTFLAGS="-D warnings" cargo test --no-default-features --features=x11
    40 40   
  • ■ ■ ■ ■ ■ ■
    .builds/linux.yml
    skipped 35 lines
    36 36   cargo clippy --all-targets
    37 37   - feature-wayland: |
    38 38   cd alacritty/alacritty
    39  - cargo test --no-default-features --features=wayland
     39 + RUSTFLAGS="-D warnings" cargo test --no-default-features --features=wayland
    40 40   - feature-x11: |
    41 41   cd alacritty/alacritty
    42  - cargo test --no-default-features --features=x11
     42 + RUSTFLAGS="-D warnings" cargo test --no-default-features --features=x11
    43 43   
  • ■ ■ ■ ■
    alacritty/src/main.rs
    skipped 19 lines
    20 20  use std::{fs, process};
    21 21   
    22 22  use glutin::event_loop::EventLoop as GlutinEventLoop;
    23  -#[cfg(not(any(target_os = "macos", windows)))]
     23 +#[cfg(all(feature = "x11", not(any(target_os = "macos", windows))))]
    24 24  use glutin::platform::unix::EventLoopWindowTargetExtUnix;
    25 25  use log::info;
    26 26  #[cfg(windows)]
    skipped 214 lines
Please wait...
Page is in error, reload to recover