Skip to content

Commit

Permalink
Fixed broken build with no default features
Browse files Browse the repository at this point in the history
- Bumped to 0.22.1
  • Loading branch information
bvssvni committed Jul 31, 2019
1 parent a4cf9b5 commit 674ec50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "image"
version = "0.22.0"
version = "0.22.1"
license = "MIT"
description = "Imaging library written in Rust. Provides basic filters and decoders for the most common image formats."
authors = [
Expand Down
2 changes: 1 addition & 1 deletion src/dynimage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ fn image_dimensions_impl(path: &Path) -> ImageResult<(u32, u32)> {
.and_then(|s| s.to_str())
.map_or("".to_string(), |s| s.to_ascii_lowercase());

let (w, h) = match &ext[..] {
let (w, h): (u64, u64) = match &ext[..] {
#[cfg(feature = "jpeg")]
"jpg" | "jpeg" => jpeg::JPEGDecoder::new(fin)?.dimensions(),
#[cfg(feature = "png_codec")]
Expand Down

0 comments on commit 674ec50

Please sign in to comment.