From 7dc038aec66783d72abda446d6251385e6ad30f4 Mon Sep 17 00:00:00 2001 From: Sébastien Crozet Date: Thu, 28 Apr 2022 17:51:17 +0200 Subject: Fix test build --- src_testbed/debug_render.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src_testbed/debug_render.rs') diff --git a/src_testbed/debug_render.rs b/src_testbed/debug_render.rs index 6e41496..913663e 100644 --- a/src_testbed/debug_render.rs +++ b/src_testbed/debug_render.rs @@ -39,8 +39,8 @@ impl<'a> DebugRenderBackend for BevyLinesRenderBackend<'a> { #[cfg(feature = "dim2")] fn draw_line(&mut self, _: DebugRenderObject, a: Point, b: Point, color: [f32; 4]) { self.lines.line_colored( - [a.x, a.y, 1.0e-8].into(), - [b.x, b.y, 1.0e-8].into(), + [a.x as f32, a.y as f32, 1.0e-8 as f32].into(), + [b.x as f32, b.y as f32, 1.0e-8 as f32].into(), 0.0, Color::hsla(color[0], color[1], color[2], color[3]), ) @@ -48,8 +48,8 @@ impl<'a> DebugRenderBackend for BevyLinesRenderBackend<'a> { #[cfg(feature = "dim3")] fn draw_line(&mut self, _: DebugRenderObject, a: Point, b: Point, color: [f32; 4]) { self.lines.line_colored( - [a.x, a.y, a.z].into(), - [b.x, b.y, b.z].into(), + [a.x as f32, a.y as f32, a.z as f32].into(), + [b.x as f32, b.y as f32, b.z as f32].into(), 0.0, Color::hsla(color[0], color[1], color[2], color[3]), ) -- cgit