aboutsummaryrefslogtreecommitdiff
path: root/examples/hello-world.rs
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-10-29 21:54:41 -0600
committerMelody Horn <melody@boringcactus.com>2021-10-29 21:54:41 -0600
commit2d242f308a0c14aa46407b20afaadead9b22150a (patch)
treed193a3af1c987e95a6e9e34b263860d88d4ed861 /examples/hello-world.rs
parent847135ed1e1e7322b63b0063be8e40d706c4954f (diff)
downloadshit-wx-sys-2d242f308a0c14aa46407b20afaadead9b22150a.tar.gz
shit-wx-sys-2d242f308a0c14aa46407b20afaadead9b22150a.zip
unsurprisingly it's not that easy
Diffstat (limited to 'examples/hello-world.rs')
-rw-r--r--examples/hello-world.rs3
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,
);