Skip to content

Commit 5ce4154

Browse files
committed
fix CI by assuring builds work with --all-features enabled (#404)
1 parent 9a25bc0 commit 5ce4154

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ffi/c.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ mod c_backend {
403403
#[cfg(feature = "zlib-ng")]
404404
use libz_ng_sys as libz;
405405

406-
#[cfg(feature = "zlib-rs")]
406+
#[cfg(all(not(feature = "zlib-ng"), feature = "zlib-rs"))]
407407
use libz_rs_sys as libz;
408408

409409
#[cfg(all(not(feature = "zlib-ng"), feature = "cloudflare_zlib"))]
@@ -443,7 +443,7 @@ mod c_backend {
443443

444444
#[cfg(feature = "zlib-ng")]
445445
const ZLIB_VERSION: &'static str = "2.1.0.devel\0";
446-
#[cfg(feature = "zlib-rs")]
446+
#[cfg(all(not(feature = "zlib-ng"), feature = "zlib-rs"))]
447447
const ZLIB_VERSION: &'static str = "0.1.0\0";
448448
#[cfg(not(any(feature = "zlib-ng", feature = "zlib-rs")))]
449449
const ZLIB_VERSION: &'static str = "1.2.8\0";

0 commit comments

Comments
 (0)