Skip to content

Commit

Permalink
evenly_sized_tracks - fix simple compile error (#643)
Browse files Browse the repository at this point in the history
flex's argument needs to be Into<f32>, a plain float literal is f64 which does not work, I just specified that the argument here is f32
  • Loading branch information
DavidM603 authored Apr 12, 2024
1 parent e8aef0c commit 9f27870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/style_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ mod repeat_fn_tests {
pub fn evenly_sized_tracks(count: u16) -> Vec<TrackSizingFunction> {
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
Expand Down

0 comments on commit 9f27870

Please sign in to comment.