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

Commit 4e48880

Browse files
committed
Update for <rust-lang/rust#23316>.
1 parent 9b60b8f commit 4e48880

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub extern fn read_data(png_ptr: *mut ffi::png_struct, data: *mut u8, length: si
6666
}
6767
}
6868

69-
pub fn load_png<P: AsPath + ?Sized>(path: &P) -> Result<Image, String> {
69+
pub fn load_png<P: AsPath>(path: P) -> Result<Image, String> {
7070
let mut reader = match File::open(path) {
7171
Ok(r) => r,
7272
Err(e) => return Err(format!("could not open file: {}", e.description())),
@@ -191,7 +191,7 @@ pub extern fn flush_data(png_ptr: *mut ffi::png_struct) {
191191
}
192192
}
193193

194-
pub fn store_png<P: AsPath + ?Sized>(img: &mut Image, path: &P) -> Result<(),String> {
194+
pub fn store_png<P: AsPath>(img: &mut Image, path: P) -> Result<(),String> {
195195
let mut file = match File::create(path) {
196196
Ok(f) => f,
197197
Err(e) => return Err(format!("{}", e))

0 commit comments

Comments
 (0)