Skip to content

Commit 49e877f

Browse files
committed
small fixes
- bump `color_quant`: feature `alloc` renamed `num-traits` cf image-rs/color_quant#21 - `ImageDecoder`: remove `Reader` when no_std b/c cleaner
1 parent b381dc9 commit 49e877f

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Rust CI
22

33
on:
44
push:
5+
# TODO(interstellar) revert
56
# branches: [ master, next ]
67
# pull_request:
78
# branches: [ master, next ]

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ avif-decoder = ["mp4parse", "dcv-color-primitives", "dav1d"]
9898
# Requires rustc nightly for feature test.
9999
benchmarks = []
100100

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

103103
[[bench]]
104104
path = "benches/decode.rs"

src/image.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,8 +651,6 @@ pub trait ImageDecoder<'a>: Sized {
651651
/// The type of reader produced by `into_reader`.
652652
#[cfg(feature = "std")]
653653
type Reader: std::io::Read + 'a;
654-
#[cfg(not(feature = "std"))]
655-
type Reader: 'a;
656654

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

0 commit comments

Comments
 (0)