Skip to content
This repository was archived by the owner on Jun 8, 2021. It is now read-only.

Commit 0ffdd32

Browse files
committed
Merge pull request #45 from gkoz/rustup
Workaround the libstd breaking change
2 parents ae2a5f0 + 6147f33 commit 0ffdd32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/image_surface.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl ImageSurface {
3636
where F: FnOnce(Box<[u8]>) + 'static {
3737
unsafe {
3838
let mut data = Box::new(AsyncBorrow::new(data, free));
39-
let ptr = data.as_mut().as_mut_ptr();
39+
let ptr = (*data).as_mut().as_mut_ptr();
4040
let surface = ImageSurface::from_glib_full(
4141
ffi::cairo_image_surface_create_for_data(ptr, format, width, height, stride));
4242
surface.set_user_data(&IMAGE_SURFACE_DATA, data).unwrap();

0 commit comments

Comments
 (0)