Skip to content

Commit 50e29cd

Browse files
authored
Merge pull request #828 from francesca64/rust-1.24.1
Use Rust 1.24.1 as minimum supported version
2 parents 3a61c01 + cdb9434 commit 50e29cd

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ os:
66
- linux
77
- osx
88
rust:
9+
- 1.24.1
910
- stable
1011
- beta
1112
- nightly

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "image"
3-
version = "0.20.0"
3+
version = "0.20.1"
44
license = "MIT"
55
description = "Imaging library written in Rust. Provides basic filters and decoders for the most common image formats."
66
authors = [

src/pnm/decoder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ fn read_separated_ascii<T: FromStr>(reader: &mut Read) -> ImageResult<T>
503503

504504
let token = reader
505505
.bytes()
506-
.skip_while(|v| v.as_ref().ok().map(is_separator).unwrap_or(false))
506+
.skip_while(|v| v.as_ref().ok().map(&is_separator).unwrap_or(false))
507507
.take_while(|v| v.as_ref().ok().map(|c| !is_separator(c)).unwrap_or(false))
508508
.collect::<Result<Vec<u8>, _>>()?;
509509

0 commit comments

Comments
 (0)