From e25e51d3fc0004c3d7065f6d8e7571a545daca0d Mon Sep 17 00:00:00 2001 From: dbr Date: Wed, 13 Oct 2021 15:42:30 +1100 Subject: [PATCH] Remove redundant as_slice call per PR feedback --- imgui/src/draw_list.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imgui/src/draw_list.rs b/imgui/src/draw_list.rs index 19b1b26..01d2270 100644 --- a/imgui/src/draw_list.rs +++ b/imgui/src/draw_list.rs @@ -545,7 +545,7 @@ impl<'ui> Polyline<'ui> { unsafe { sys::ImDrawList_AddConvexPolyFilled( self.draw_list.draw_list, - self.points.as_slice().as_ptr() as *const sys::ImVec2, + self.points.as_ptr() as *const sys::ImVec2, self.points.len() as i32, self.color.into(), ) @@ -554,7 +554,7 @@ impl<'ui> Polyline<'ui> { unsafe { sys::ImDrawList_AddPolyline( self.draw_list.draw_list, - self.points.as_slice().as_ptr() as *const sys::ImVec2, + self.points.as_ptr() as *const sys::ImVec2, self.points.len() as i32, self.color.into(), sys::ImDrawFlags::default(),