We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be0c5e5 commit ecf6a5aCopy full SHA for ecf6a5a
crates/approx-chol/src/types.rs
@@ -29,5 +29,6 @@ where
29
/// This function provides a proper total order by placing NaN after all non-NaN.
30
#[inline]
31
pub(crate) fn float_total_cmp<T: Float>(a: &T, b: &T) -> Ordering {
32
- a.partial_cmp(b).unwrap_or_else(|| a.is_nan().cmp(&b.is_nan()))
+ a.partial_cmp(b)
33
+ .unwrap_or_else(|| a.is_nan().cmp(&b.is_nan()))
34
}
0 commit comments