Revert "Auto merge of #89709 - clemenswasser:apply_clippy_suggestions_2, r=petrochenkov"
The PR had some unforseen perf regressions that are not as easy to find. Revert the PR for now. This reverts commit6ae8912a3e
, reversing changes made to86d6d2b738
.
This commit is contained in:
parent
72d66064e7
commit
4457014398
22 changed files with 72 additions and 56 deletions
|
@ -389,7 +389,6 @@ impl<S: Semantics> fmt::Display for IeeeFloat<S> {
|
|||
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 {
|
||||
|
@ -2527,7 +2526,6 @@ mod sig {
|
|||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue