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

Commit 9b60b8f

Browse files
committed
Update for <rust-lang/rust#23292>.
1 parent 1d9c59c commit 9b60b8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ pub fn load_png<P: AsPath + ?Sized>(path: &P) -> Result<Image, String> {
7373
};
7474
let mut buffer = vec![];
7575
match reader.read_to_end(&mut buffer) {
76-
Ok(()) => (),
76+
Ok(_) => (),
7777
Err(e) => return Err(format!("could not read file: {}", e.description())),
7878
}
7979
load_png_from_memory(&buffer)
@@ -307,7 +307,7 @@ mod test {
307307
};
308308
let mut buf = vec![];
309309
match reader.read_to_end(&mut buf) {
310-
Ok(()) => (),
310+
Ok(_) => (),
311311
Err(e) => panic!(e)
312312
}
313313
b.bench_n(1, |b| b.iter(|| {

0 commit comments

Comments
 (0)