这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@DavidM603
Copy link
Contributor

@DavidM603 DavidM603 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

xbz-24 commented Apr 12, 2024

https://github.com/bevyengine/bevy/actions/runs/8656168577/job/23736270747?pr=12923#step:6:636

this is causing an error in CI for taffy apparently aswell

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

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

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