diff options
Diffstat (limited to 'examples/hello-world.rs')
-rw-r--r-- | examples/hello-world.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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, ); |