From 2360280b64cf7fae16bf3d51d47be0935e2e8cde Mon Sep 17 00:00:00 2001 From: Jonathan Spira Date: Wed, 2 Oct 2024 00:38:23 -0400 Subject: [PATCH] marked the platfrom io funcs as pub(crate) --- imgui/src/context.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imgui/src/context.rs b/imgui/src/context.rs index 22e0d63..4942900 100644 --- a/imgui/src/context.rs +++ b/imgui/src/context.rs @@ -611,7 +611,7 @@ impl Context { #[cfg(feature = "docking")] impl Context { /// Returns an immutable reference to the Context's [`PlatformIo`](crate::PlatformIo) object. - pub fn platform_io(&self) -> &crate::PlatformIo { + pub(crate) fn platform_io(&self) -> &crate::PlatformIo { unsafe { // safe because PlatformIo is a transparent wrapper around sys::ImGuiPlatformIO // and &self ensures we have shared ownership of PlatformIo. @@ -619,7 +619,7 @@ impl Context { } } /// Returns a mutable reference to the Context's [`PlatformIo`](crate::PlatformIo) object. - pub fn platform_io_mut(&mut self) -> &mut crate::PlatformIo { + pub(crate) fn platform_io_mut(&mut self) -> &mut crate::PlatformIo { unsafe { // safe because PlatformIo is a transparent wrapper around sys::ImGuiPlatformIO // and &mut self ensures exclusive ownership of PlatformIo.