From 21e3ff99fa5628011fe226dd13a87e09f0f33330 Mon Sep 17 00:00:00 2001 From: Glenn Watson Date: Fri, 24 Oct 2014 18:12:03 +1000 Subject: [PATCH] Make platform data function as unsafe. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() } }