]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_apfloat/src/ieee.rs
Rollup merge of #89768 - hellow554:tests, r=Mark-Simulacrum
[rust.git] / compiler / rustc_apfloat / src / ieee.rs
index 96277950cfe1a0fbf9489172436ddc6c49f18480..739c6fd0a435f3eea5a58e2339885ea0d32cd719 100644 (file)
@@ -389,6 +389,7 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
         let _: Loss = sig::shift_right(&mut sig, &mut exp, trailing_zeros as usize);
 
         // Change the exponent from 2^e to 10^e.
+        #[allow(clippy::comparison_chain)]
         if exp == 0 {
             // Nothing to do.
         } else if exp > 0 {
@@ -2526,6 +2527,7 @@ pub(super) fn add_or_sub(
         if *a_sign ^ b_sign {
             let (reverse, loss);
 
+            #[allow(clippy::comparison_chain)]
             if bits == 0 {
                 reverse = cmp(a_sig, b_sig) == Ordering::Less;
                 loss = Loss::ExactlyZero;