about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDion Dokter <diondokter@gmail.com>2024-07-17 01:20:56 +0200
committerGitHub <noreply@github.com>2024-07-17 01:20:56 +0200
commit33f1d9d554dad10ebc11453d1595c97dba72d211 (patch)
tree68329efe3c6c16b92f885d4bf4b143e65c58d69b
parentc4391b326edbf4bcf374c9891fb0bfc2bc33531a (diff)
downloadrust-33f1d9d554dad10ebc11453d1595c97dba72d211.tar.gz
rust-33f1d9d554dad10ebc11453d1595c97dba72d211.zip
Cfg nit
Co-authored-by: Clar Fon <15850505+clarfonthey@users.noreply.github.com>
-rw-r--r--library/core/src/num/dec2flt/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/num/dec2flt/mod.rs b/library/core/src/num/dec2flt/mod.rs
index c10bf797b57..9aac2332dce 100644
--- a/library/core/src/num/dec2flt/mod.rs
+++ b/library/core/src/num/dec2flt/mod.rs
@@ -250,7 +250,7 @@ pub fn dec2flt<F: RawFloat>(s: &str) -> Result<F, ParseFloatError> {
         None => return Err(pfe_invalid()),
     };
     num.negative = negative;
-    if cfg!(not(feature = "optimize_for_size")) {
+    if !cfg!(feature = "optimize_for_size") {
         if let Some(value) = num.try_fast_path::<F>() {
             return Ok(value);
         }