We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8170e6 commit 019e01fCopy full SHA for 019e01f
core/src/num/dec2flt/mod.rs
@@ -250,8 +250,10 @@ pub fn dec2flt<F: RawFloat>(s: &str) -> Result<F, ParseFloatError> {
250
None => return Err(pfe_invalid()),
251
};
252
num.negative = negative;
253
- if let Some(value) = num.try_fast_path::<F>() {
254
- return Ok(value);
+ if cfg!(not(feature = "optimize_for_size")) {
+ if let Some(value) = num.try_fast_path::<F>() {
255
+ return Ok(value);
256
+ }
257
}
258
259
// If significant digits were truncated, then we can have rounding error
0 commit comments