We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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()