From 9a65a64eca4554d295c41da1dc31af671c8f4051 Mon Sep 17 00:00:00 2001 From: Malik Olivier Boussejra Date: Sun, 15 Apr 2018 15:21:42 +0900 Subject: [PATCH] WindowDrawList: Cannot use WindowDrawList::new outside of crate --- src/window_draw_list.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window_draw_list.rs b/src/window_draw_list.rs index 0897dbb..bb3e1a3 100644 --- a/src/window_draw_list.rs +++ b/src/window_draw_list.rs @@ -64,7 +64,7 @@ impl<'ui> DrawAPI for WindowDrawList<'ui> { } impl<'ui> WindowDrawList<'ui> { - pub fn new(_: &Ui<'ui>) -> Self { + pub(crate) fn new(_: &Ui<'ui>) -> Self { Self { draw_list: unsafe { sys::igGetWindowDrawList() }, _phantom: PhantomData,