Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
- bump `color_quant`: feature `alloc` renamed `num-traits` cf image-rs/color_quant#21
- `ImageDecoder`: remove `Reader` when no_std b/c cleaner
  • Loading branch information
n-prat committed Mar 2, 2023
1 parent b381dc9 commit 49e877f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Rust CI

on:
push:
# TODO(interstellar) revert
# branches: [ master, next ]
# pull_request:
# branches: [ master, next ]
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ avif-decoder = ["mp4parse", "dcv-color-primitives", "dav1d"]
# Requires rustc nightly for feature test.
benchmarks = []

alloc = ["num-traits/libm", "color_quant/alloc"]
alloc = ["num-traits/libm", "color_quant/num-traits"]

[[bench]]
path = "benches/decode.rs"
Expand Down
2 changes: 0 additions & 2 deletions src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -651,8 +651,6 @@ pub trait ImageDecoder<'a>: Sized {
/// The type of reader produced by `into_reader`.
#[cfg(feature = "std")]
type Reader: std::io::Read + 'a;
#[cfg(not(feature = "std"))]
type Reader: 'a;

/// Returns a tuple containing the width and height of the image
fn dimensions(&self) -> (u32, u32);
Expand Down

0 comments on commit 49e877f

Please sign in to comment.