mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix:nan shouldn't be allowed
This commit is contained in:
parent
c9d74360bf
commit
70ccd97a05
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ pub struct OrderedFloat(f64);
|
||||||
impl OrderedFloat {
|
impl OrderedFloat {
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn new(t: f64) -> Self {
|
pub fn new(t: f64) -> Self {
|
||||||
debug_assert!(t.is_nan());
|
debug_assert!(!t.is_nan());
|
||||||
Self(t)
|
Self(t)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue