diff --git a/src/lib.rs b/src/lib.rs index 33c66db3..868d4c0f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -346,7 +346,7 @@ impl Window { /// This is typically only required when integrating with /// other libraries that need this information. #[inline] - pub fn platform_display(&self) -> *mut libc::c_void { + pub unsafe fn platform_display(&self) -> *mut libc::c_void { self.window.platform_display() } }