Skip to content

evenly_sized_tracks - fix simple compile error#643

Merged
nicoburns merged 1 commit intoDioxusLabs:mainfrom
davidmcmurray:patch-1
Apr 12, 2024
Merged

evenly_sized_tracks - fix simple compile error#643
nicoburns merged 1 commit intoDioxusLabs:mainfrom
davidmcmurray:patch-1

Conversation

@davidmcmurray
Copy link
Copy Markdown
Contributor

@davidmcmurray davidmcmurray commented Apr 12, 2024

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

Objective

fixes #642

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
@xbz-24
Copy link
Copy Markdown

xbz-24 commented Apr 12, 2024

@nicoburns nicoburns merged commit 9f27870 into DioxusLabs:main Apr 12, 2024
@nicoburns
Copy link
Copy Markdown
Member

This seems uncontroversial, although it won't fix 3rd-party code that's calling this API and relying on type inference. I guess this should probably to be backported to the 0.3.x series seeing as Bevy is still using that.

@djeedai
Copy link
Copy Markdown

djeedai commented Apr 12, 2024

Bevy is currently unusable, all compatible versions 0.3.10 to 0.3.18 are broken.

nicoburns pushed a commit to nicoburns/taffy that referenced this pull request Apr 12, 2024
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

(cherry picked from commit 9f27870)
This was referenced Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The trait bound f32: From<f64> is not satisfied

4 participants