File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,7 @@ impl GlContext {
160
160
let symbol = CString :: new ( "wglCreateContextAttribsARB" ) . unwrap ( ) ;
161
161
let addr = wglGetProcAddress ( symbol. as_ptr ( ) ) ;
162
162
if !addr. is_null ( ) {
163
+ #[ allow( clippy:: missing_transmute_annotations) ]
163
164
Some ( std:: mem:: transmute ( addr) )
164
165
} else {
165
166
None
@@ -171,6 +172,7 @@ impl GlContext {
171
172
let symbol = CString :: new ( "wglChoosePixelFormatARB" ) . unwrap ( ) ;
172
173
let addr = wglGetProcAddress ( symbol. as_ptr ( ) ) ;
173
174
if !addr. is_null ( ) {
175
+ #[ allow( clippy:: missing_transmute_annotations) ]
174
176
Some ( std:: mem:: transmute ( addr) )
175
177
} else {
176
178
None
@@ -182,6 +184,7 @@ impl GlContext {
182
184
let symbol = CString :: new ( "wglSwapIntervalEXT" ) . unwrap ( ) ;
183
185
let addr = wglGetProcAddress ( symbol. as_ptr ( ) ) ;
184
186
if !addr. is_null ( ) {
187
+ #[ allow( clippy:: missing_transmute_annotations) ]
185
188
Some ( std:: mem:: transmute ( addr) )
186
189
} else {
187
190
None
Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ impl GlContext {
91
91
if addr. is_null ( ) {
92
92
return Err ( GlError :: CreationFailed ( CreationFailedError :: GetProcAddressFailed ) ) ;
93
93
} else {
94
+ #[ allow( clippy:: missing_transmute_annotations) ]
94
95
std:: mem:: transmute ( addr)
95
96
}
96
97
} ;
@@ -101,6 +102,7 @@ impl GlContext {
101
102
if addr. is_null ( ) {
102
103
return Err ( GlError :: CreationFailed ( CreationFailedError :: GetProcAddressFailed ) ) ;
103
104
} else {
105
+ #[ allow( clippy:: missing_transmute_annotations) ]
104
106
std:: mem:: transmute ( addr)
105
107
}
106
108
} ;
Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ const DROP_PTR: unsafe extern "system" fn(
47
47
pt : POINTL ,
48
48
pdwEffect : * mut DWORD ,
49
49
) -> HRESULT = DropTarget :: drop;
50
+
51
+ #[ allow( clippy:: missing_transmute_annotations) ]
50
52
const DROP_TARGET_VTBL : IDropTargetVtbl = IDropTargetVtbl {
51
53
parent : IUnknownVtbl {
52
54
QueryInterface : DropTarget :: query_interface,
You can’t perform that action at this time.
0 commit comments