From f6ed2e4029391bd6747aebb038a5397c09f63144 Mon Sep 17 00:00:00 2001 From: Richard Giliam Date: Fri, 10 May 2024 02:57:16 -0700 Subject: [PATCH] Well that was a silly idea; remove use of 1.70 function that simplified nothing to keep at 1.65 --- src/lazy/binary/raw/v1_1/value.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lazy/binary/raw/v1_1/value.rs b/src/lazy/binary/raw/v1_1/value.rs index 11ec9110..068b3be9 100644 --- a/src/lazy/binary/raw/v1_1/value.rs +++ b/src/lazy/binary/raw/v1_1/value.rs @@ -259,7 +259,7 @@ impl<'top> LazyRawBinaryValue_1_1<'top> { )?; // Handle special -0 encoding. - if coefficient_size > 0 && coefficient.value().as_i64().is_some_and(|c| c == 0) { + if coefficient_size > 0 && coefficient.value().as_i64() == Some(0) { Decimal::negative_zero_with_exponent(exponent.value()) } else { Decimal::new(coefficient, exponent.value())