Simplify integer and float functions trait bounds

This commit is contained in:
Kerollmops
2021-04-07 11:57:16 +02:00
parent efbfa81fa7
commit 51767725b2
17 changed files with 217 additions and 521 deletions

View File

@ -33,7 +33,7 @@ impl From<OrderedFloat<f64>> for FacetValue {
impl From<i64> for FacetValue {
fn from(integer: i64) -> FacetValue {
FacetValue::Number(integer as f64)
FacetValue::Number(OrderedFloat(integer as f64))
}
}