Skip to content

Commit 0a3f146

Browse files
committed
Renamed into_ascii_lower to into_ascii_lowercase.
This fixes the fallout of `std:ascii` reform (rust-lang/rust#19916). Note: tests will stop failing once rust-lang/glob#17 is merged.
1 parent cb6221b commit 0a3f146

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dynimage.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ pub fn open(path: &Path) -> ImageResult<DynamicImage> {
471471
};
472472

473473
let ext = path.extension_str()
474-
.map_or("".to_string(), | s | s.to_string().into_ascii_lower());
474+
.map_or("".to_string(), | s | s.to_string().into_ascii_lowercase());
475475

476476
let format = match ext.as_slice() {
477477
"jpg" |
@@ -501,7 +501,7 @@ pub fn open(path: &Path) -> ImageResult<DynamicImage> {
501501
pub fn save_buffer(path: &Path, buf: &[u8], width: u32, height: u32, color: color::ColorType) -> io::IoResult<()> {
502502
let fout = try!(io::File::create(path));
503503
let ext = path.extension_str()
504-
.map_or("".to_string(), | s | s.to_string().into_ascii_lower());
504+
.map_or("".to_string(), | s | s.to_string().into_ascii_lowercase());
505505

506506
match ext.as_slice() {
507507
"jpg" |

0 commit comments

Comments
 (0)