From 464557fdc6b9be73036c063faec701913030beaf Mon Sep 17 00:00:00 2001 From: Zhaoxian Li Date: Sun, 21 Jun 2020 22:30:29 +0800 Subject: [PATCH] Force background to consume self This is to enforce the consistency WINDOW_DRAW_LIST_LOADED --- 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 090e818..5a0cce4 100644 --- a/src/window_draw_list.rs +++ b/src/window_draw_list.rs @@ -82,7 +82,7 @@ impl<'ui> WindowDrawList<'ui> { } } - pub(crate) fn background(&mut self) -> Self { + pub(crate) fn background(self) -> Self { Self { draw_list: unsafe { sys::igGetBackgroundDrawList() }, _phantom: PhantomData,