-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The trait bound f32: From<f64>
is not satisfied
#642
Labels
bug
Something isn't working
Comments
I just added bevy-rapier3d that uses taffy 0.3.18 and I am getting this compilation error |
error[E0277]: the trait bound `f32: From<f64>` is not satisfied
--> /Users/xbz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/taffy-0.3.18/src/style_helpers.rs:58:31
|
58 | repeated_tracks.push(flex(1.0));
| ---- ^^^ the trait `From<f64>` is not implemented for `f32`, which is required by `{float}: Into<f32>`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `From<T>`:
<f32 as From<bool>>
<f32 as From<f16>>
<f32 as From<i16>>
<f32 as From<i8>>
<f32 as From<u16>>
<f32 as From<u8>>
= note: required for `f64` to implement `Into<f32>`
note: required by a bound in `flex`
--> /Users/xbz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/taffy-0.3.18/src/style_helpers.rs:100:12
|
98 | pub fn flex<Input, Output>(flex_fraction: Input) -> Output
| ---- required by a bound in this function
99 | where
100 | Input: Into<f32> + Copy,
| ^^^^^^^^^ required by this bound in `flex`
|
https://github.com/bevyengine/bevy/actions/runs/8656168577/job/23736270747?pr=12923#step:6:636 this is causing a CI failure as well |
This was referenced Apr 12, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
taffy
versionThe release number or commit hash of the version you're using.
0.3.18
Platform
What platform are you using
taffy
on? e.g. Rust, Android, IOS, JavaScript/TypeScriptRust arm64 darwin
What you did
The steps you took to uncover this bug.
Please provide a runnable code snippet or link to an example that demonstrates the problem if you can.
What went wrong
If it's not clear:
Additional information
Other information that can be used to further reproduce or isolate the problem.
This commonly includes:
The text was updated successfully, but these errors were encountered: