From 1af2ee842e6e757e0c1dc1c6c9379d4fbd6e08f9 Mon Sep 17 00:00:00 2001 From: DavidM603 <37750354+DavidM603@users.noreply.github.com> Date: Thu, 11 Apr 2024 22:28:41 -0400 Subject: [PATCH] evenly_sized_tracks - fix simple compile error flex's argument needs to be Into, a plain float literal is f64 which does not work, I just specified that the argument here is f32 --- src/style_helpers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/style_helpers.rs b/src/style_helpers.rs index 1f4d43cb9..9701a6a59 100644 --- a/src/style_helpers.rs +++ b/src/style_helpers.rs @@ -55,7 +55,7 @@ mod repeat_fn_tests { pub fn evenly_sized_tracks(count: u16) -> Vec { use crate::util::sys::new_vec_with_capacity; let mut repeated_tracks = new_vec_with_capacity(1); - repeated_tracks.push(flex(1.0)); + repeated_tracks.push(flex(1.0f32)); let mut tracks = new_vec_with_capacity(1); tracks.push(repeat(count, repeated_tracks)); tracks