Skip to content
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

Breaks when i128 is disabled in num-traits #37

Open
kornelski opened this issue Feb 16, 2022 · 0 comments
Open

Breaks when i128 is disabled in num-traits #37

kornelski opened this issue Feb 16, 2022 · 0 comments

Comments

@kornelski
Copy link
Contributor

kornelski commented Feb 16, 2022

    --> ~/.cargo/registry/src/github.com-1ecc6299db9ec823/noisy_float-0.2.0/src/float_impl.rs:572:5
     |
 572 |       fn from_i128(n: i128) -> Option<Self> {
     |       ^  --------- help: there is an associated function with a similar name: `from_i8`
     |  _____|
     | |
 573 | |         Self::try_new(F::from_i128(n)?)
 574 | |     }

I think this is because i128 is optional in num-traits, but noisy_float uses it unconditionally. The problem went away when I've added num-traits = { version = "0.2.14", features = ["i128", "std"] } to my Cargo.toml.

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

No branches or pull requests

1 participant