Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
Update for <rust-lang/rust#23292>.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger committed Mar 21, 2015
1 parent 1d9c59c commit 9b60b8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ pub fn load_png<P: AsPath + ?Sized>(path: &P) -> Result<Image, String> {
};
let mut buffer = vec![];
match reader.read_to_end(&mut buffer) {
Ok(()) => (),
Ok(_) => (),
Err(e) => return Err(format!("could not read file: {}", e.description())),
}
load_png_from_memory(&buffer)
Expand Down Expand Up @@ -307,7 +307,7 @@ mod test {
};
let mut buf = vec![];
match reader.read_to_end(&mut buf) {
Ok(()) => (),
Ok(_) => (),
Err(e) => panic!(e)
}
b.bench_n(1, |b| b.iter(|| {
Expand Down

0 comments on commit 9b60b8f

Please sign in to comment.