From ef60557d9871ec9c49d53efa3bb2931457ba06f4 Mon Sep 17 00:00:00 2001 From: John Nunley Date: Sat, 22 Jun 2024 08:49:15 -0700 Subject: [PATCH] bugfix: Fix CI errors - Remove the default features of the image crate. - Remove exr from pinned deps - Fix macro positioning - Allow for clippy false positive Signed-off-by: John Nunley --- .github/workflows/ci.yml | 5 ++--- Cargo.toml | 1 - src/lib.rs | 1 + 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db67202..1b8acca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: components: rustfmt - name: Check Formatting run: cargo +stable fmt --all -- --check - - uses: taiki-e/install-action@v2 + - uses: taiki-e/install-action@v2 with: tool: typos-cli - name: Check Formatting @@ -88,10 +88,9 @@ jobs: - name: Pin deps that break MSRV if: matrix.rust_version == '1.70.0' run: | - cargo update -p exr --precise 1.71.0 cargo update -p ahash --precise 0.8.7 cargo update -p bumpalo --precise 3.14.0 - + - name: Build crate shell: bash run: cargo $CMD build --verbose --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES diff --git a/Cargo.toml b/Cargo.toml index 873322d..8a1eabf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -91,7 +91,6 @@ features = ["jpeg"] [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] # Turn rayon back on everywhere else; creating the separate entry resets the features to default. -image = "0.25.0" rayon = "1.5.1" [target.'cfg(target_arch = "wasm32")'.dev-dependencies] diff --git a/src/lib.rs b/src/lib.rs index 06cd6db..1bd445b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,5 @@ #![doc = include_str!("../README.md")] +#![allow(clippy::needless_doctest_main)] #![deny(unsafe_op_in_unsafe_fn)] #![warn(missing_docs)] #![cfg_attr(docsrs, feature(doc_auto_cfg))]