Skip to content

Commit a80a1c2

Browse files
committed
Build fixes
1 parent 32c2390 commit a80a1c2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ jobs:
399399
working-directory: libz-rs-sys-cdylib
400400
run: |
401401
# build using cargo-c this time
402-
cargo cinstall --offline --release --destdir=/tmp/cargo-cbuild-libz-rs
402+
cargo cinstall --release --destdir=/tmp/cargo-cbuild-libz-rs
403403
tree /tmp/cargo-cbuild-libz-rs
404404
# verify that the SONAME is set and includes a version
405405
objdump -p target/x86_64-unknown-linux-gnu/release/libz_rs.so | awk '/SONAME/{print $2}' | grep -E 'libz_rs\.so\.1'

libz-rs-sys-cdylib/src/gz.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ use zlib_rs::MAX_WBITS;
2222
/// of an open gzFile to support the gzgetc() C macro. Since Rust code won't be
2323
/// using that C macro, we define gzFile_s as an empty structure. The first fields
2424
/// in GzState match what would be in the C version of gzFile_s.
25+
#[allow(non_camel_case_types)]
2526
pub enum gzFile_s {}
2627

2728
/// File handle for an open gzip file.
29+
#[allow(non_camel_case_types)]
2830
pub type gzFile = *mut gzFile_s;
2931

3032
// The internals of a gzip file handle (the thing gzFile actually points to, with the
@@ -139,6 +141,7 @@ impl GzState {
139141

140142
// Gzip operating modes
141143
// NOTE: These values match what zlib-ng uses.
144+
#[allow(non_camel_case_types)]
142145
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
143146
enum GzMode {
144147
GZ_NONE = 0,

0 commit comments

Comments
 (0)