diff options
author | 2019-11-03 05:06:53 +0100 | |
---|---|---|
committer | 2019-11-03 05:06:53 +0100 | |
commit | 494b0681f831c76b28e0bcd02cd1b83378416e01 (patch) | |
tree | 3e0a53f8e9ea0eb8ad9eb1d561d21b2135519552 | |
parent | 1a2e512686caa5b644644155185cc5efe2087bee (diff) | |
download | iced-494b0681f831c76b28e0bcd02cd1b83378416e01.tar.gz iced-494b0681f831c76b28e0bcd02cd1b83378416e01.tar.bz2 iced-494b0681f831c76b28e0bcd02cd1b83378416e01.zip |
Enable debug view explicitly and test it in CI
-rw-r--r-- | .github/workflows/integration.yml | 4 | ||||
-rw-r--r-- | winit/src/lib.rs | 7 |
2 files changed, 5 insertions, 6 deletions
diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 5e73f3cb..16d60ea7 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -19,4 +19,6 @@ jobs: sudo apt-get install -y libasound2-dev libudev-dev - uses: actions/checkout@master - name: Run tests - run: cargo test --verbose --all --all-features + run: | + cargo test --verbose --all + cargo test --verbose --all --all-features diff --git a/winit/src/lib.rs b/winit/src/lib.rs index f66c0553..d9482fe4 100644 --- a/winit/src/lib.rs +++ b/winit/src/lib.rs @@ -9,11 +9,8 @@ pub use application::Application; // We disable debug capabilities on release builds unless the `debug` feature // is explicitly enabled. -#[cfg_attr(any(debug_assertions, feature = "debug"), path = "debug/basic.rs")] -#[cfg_attr( - not(any(debug_assertions, feature = "debug")), - path = "debug/null.rs" -)] +#[cfg_attr(feature = "debug", path = "debug/basic.rs")] +#[cfg_attr(not(feature = "debug"), path = "debug/null.rs")] mod debug; use debug::Debug; |