From 315be575eeba689dfdad17db2693dbec7ae0ce74 Mon Sep 17 00:00:00 2001 From: Mark Date: Wed, 20 Sep 2023 11:09:44 -0700 Subject: [PATCH] Fixed small function --- src/quantity/scalar/scalar.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/quantity/scalar/scalar.rs b/src/quantity/scalar/scalar.rs index e6a0d5a..0901c5f 100644 --- a/src/quantity/scalar/scalar.rs +++ b/src/quantity/scalar/scalar.rs @@ -184,7 +184,7 @@ impl Scalar { pub fn is_nan(&self) -> bool { match self { - Scalar::Float {..} => {false}, + Scalar::Float{ v } => {v.val.is_nan()}, Scalar::Rational {..} => {false} } }