From 2d242f308a0c14aa46407b20afaadead9b22150a Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Fri, 29 Oct 2021 21:54:41 -0600 Subject: unsurprisingly it's not that easy --- examples/hello-world.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/hello-world.rs') diff --git a/examples/hello-world.rs b/examples/hello-world.rs index fb15d85..9fe521c 100644 --- a/examples/hello-world.rs +++ b/examples/hello-world.rs @@ -1,4 +1,5 @@ use std::ffi::CString; +use std::ptr::null_mut; use shit_wx_sys::*; @@ -12,7 +13,7 @@ fn main() { (&message) as *const wxString, (&message) as *const wxString, (wxOK as i32) | wxGeometryCentre_wxCENTER, - NULL as *mut wxWindow, + null_mut(), wxDefaultCoord, wxDefaultCoord, ); -- cgit v1.2.3