File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ impl X11Display {
54
54
#[ cfg_attr( docsrs, doc( cfg( feature = "xlib" ) ) ) ]
55
55
#[ doc( alias = "gdk_x11_display_get_xdisplay" ) ]
56
56
#[ doc( alias = "get_xdisplay" ) ]
57
+ #[ allow( clippy:: missing_safety_doc) ]
57
58
pub unsafe fn xdisplay ( & self ) -> * mut xlib:: Display {
58
59
ffi:: gdk_x11_display_get_xdisplay ( self . to_glib_none ( ) . 0 ) as * mut xlib:: Display
59
60
}
@@ -62,13 +63,15 @@ impl X11Display {
62
63
#[ cfg_attr( docsrs, doc( cfg( feature = "xlib" ) ) ) ]
63
64
#[ doc( alias = "gdk_x11_display_get_xscreen" ) ]
64
65
#[ doc( alias = "get_xscreen" ) ]
66
+ #[ allow( clippy:: missing_safety_doc) ]
65
67
pub unsafe fn xscreen ( & self ) -> * mut xlib:: Screen {
66
68
ffi:: gdk_x11_display_get_xscreen ( self . to_glib_none ( ) . 0 ) as * mut xlib:: Screen
67
69
}
68
70
69
71
#[ cfg( feature = "xlib" ) ]
70
72
#[ cfg_attr( docsrs, doc( cfg( feature = "xlib" ) ) ) ]
71
73
#[ doc( alias = "xevent" ) ]
74
+ #[ allow( clippy:: missing_safety_doc) ]
72
75
pub unsafe fn connect_xevent < F : Fn ( & Self , * mut xlib:: XEvent ) -> glib:: Propagation + ' static > (
73
76
& self ,
74
77
f : F ,
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ impl X11Screen {
14
14
#[ cfg_attr( docsrs, doc( cfg( feature = "xlib" ) ) ) ]
15
15
#[ doc( alias = "gdk_x11_screen_get_xscreen" ) ]
16
16
#[ doc( alias = "get_xscreen" ) ]
17
+ #[ allow( clippy:: missing_safety_doc) ]
17
18
pub unsafe fn xscreen ( & self ) -> * mut xlib:: Screen {
18
19
ffi:: gdk_x11_screen_get_xscreen ( self . to_glib_none ( ) . 0 ) as * mut xlib:: Screen
19
20
}
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ pub use gl::types::GLsync;
13
13
impl GLTextureBuilder {
14
14
#[ doc( alias = "gdk_gl_texture_builder_build" ) ]
15
15
#[ must_use = "The builder must be built to be used" ]
16
+ #[ allow( clippy:: missing_safety_doc) ]
16
17
pub unsafe fn build ( self ) -> Texture {
17
18
from_glib_full ( ffi:: gdk_gl_texture_builder_build (
18
19
self . to_glib_none ( ) . 0 ,
@@ -23,6 +24,7 @@ impl GLTextureBuilder {
23
24
24
25
#[ doc( alias = "gdk_gl_texture_builder_build" ) ]
25
26
#[ must_use = "The builder must be built to be used" ]
27
+ #[ allow( clippy:: missing_safety_doc) ]
26
28
pub unsafe fn build_with_release_func < F : FnOnce ( ) + ' static > ( self , release_func : F ) -> Texture {
27
29
unsafe extern "C" fn destroy_closure < F : FnOnce ( ) + ' static > ( func : glib:: ffi:: gpointer ) {
28
30
let released_func = Box :: < F > :: from_raw ( func as * mut _ ) ;
You can’t perform that action at this time.
0 commit comments