We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
The generator produces for the optional double the following code:
if value == f64::NAN { None } else { Some(value) }
But the comparison if value == f64::NAN is always false, it needs to use if value.is_nan() instead.
if value == f64::NAN
false
if value.is_nan()
The text was updated successfully, but these errors were encountered:
@mward can you pick this up?
Sorry, something went wrong.
[Rust] fix generated comparison when value is NAN (aeron-io#895)
6915668
[Rust] fix generated comparison when value is NAN (#895) (#896)
d9600d4
Co-authored-by: Michael Ward <mward@drw.com>
[Rust] added test for issue aeron-io#895
831dea1
[Rust] added tests for issue #895 (#897)
30bbb00
* [Rust] fix generated comparison when value is NAN (#895) * [Rust] added test for issue #895 Co-authored-by: Michael Ward <mward@drw.com>
No branches or pull requests
The generator produces for the optional double the following code:
But the comparison
if value == f64::NAN
is alwaysfalse
, it needs to useif value.is_nan()
instead.The text was updated successfully, but these errors were encountered: