cairo: fix xcb features
@@ -37,13 +37,15 @@ impl<'a> ToGlibPtr<'a, *mut ffi::xcb_connection_t> for &'a XCBConnection {
}
}
-impl FromGlibPtrFull<*mut ffi::xcb_connection_t> for XCBConnection {
+impl FromGlibPtrNone<*mut ffi::xcb_connection_t> for XCBConnection {
#[inline]
unsafe fn from_glib_none(ptr: *mut ffi::xcb_connection_t) -> XCBConnection {
assert!(!ptr.is_null());
XCBConnection(ptr)
}
+}
+impl FromGlibPtrFull<*mut ffi::xcb_connection_t> for XCBConnection {
#[inline]
unsafe fn from_glib_full(ptr: *mut ffi::xcb_connection_t) -> XCBConnection {
assert!(!ptr.is_null());
@@ -75,13 +77,15 @@ impl<'a> ToGlibPtr<'a, *mut ffi::xcb_render_pictforminfo_t> for &'a XCBRenderPic
}
}
-impl FromGlibPtrFull<*mut ffi::xcb_render_pictforminfo_t> for XCBRenderPictFormInfo {
+impl FromGlibPtrNone<*mut ffi::xcb_render_pictforminfo_t> for XCBRenderPictFormInfo {
#[inline]
unsafe fn from_glib_none(ptr: *mut ffi::xcb_render_pictforminfo_t) -> XCBRenderPictFormInfo {
assert!(!ptr.is_null());
XCBRenderPictFormInfo(ptr)
}
+}
+impl FromGlibPtrFull<*mut ffi::xcb_render_pictforminfo_t> for XCBRenderPictFormInfo {
#[inline]
unsafe fn from_glib_full(ptr: *mut ffi::xcb_render_pictforminfo_t) -> XCBRenderPictFormInfo {
assert!(!ptr.is_null());
