diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index c64db8bb..ddb37317 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -96,6 +96,8 @@ jobs: with: files: lcov.info fail_ci_if_error: false + token: ${{ secrets.CODECOV_TOKEN }} + slug: codecov/codecov-demo build-qemu: name: QEMU build & test diff --git a/README.md b/README.md index 77ae95e1..36d6ebd7 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ +![checks](https://github.com/trifectatechfoundation/zlib-rs/actions/workflows/checks.yaml/badge.svg?branch=main) +[![codecov](https://codecov.io/gh/trifectatechfoundation/zlib-rs/graph/badge.svg?token=KZLDE24YVL)](https://codecov.io/gh/trifectatechfoundation/zlib-rs) +[![Crates.io](https://img.shields.io/crates/v/libz-rs-sys.svg)](https://crates.io/crates/libz-rs-sys) + + # zlib-rs: a safer zlib This repository contains a Rust implementation of the zlib file format that is compatible with the zlib API. diff --git a/test-libz-rs-sys/src/deflate.rs b/test-libz-rs-sys/src/deflate.rs index e9e5da80..33f1fb72 100644 --- a/test-libz-rs-sys/src/deflate.rs +++ b/test-libz-rs-sys/src/deflate.rs @@ -2441,7 +2441,7 @@ fn flood_pending_buffer() { config.mem_level, config.strategy as i32, libz_rs_sys::zlibVersion(), - size_of::() as c_int, + core::mem::size_of::() as c_int, ) }; assert_eq!(ReturnCode::from(err), ReturnCode::Ok); @@ -2450,7 +2450,7 @@ fn flood_pending_buffer() { let mut header = gz_header { text: 0, - time: 10055284024492657547, + time: 0, xflags: 0, os: -1953789045, extra: extra.as_mut_ptr(), @@ -2469,7 +2469,7 @@ fn flood_pending_buffer() { let mut source: [u8; 0] = []; - let bound = unsafe { deflateBound(stream, source.len() as u64) }; + let bound = unsafe { deflateBound(stream, source.len() as _) }; let mut dest = vec![0; bound as usize]; stream.next_in = source.as_mut_ptr().cast();