refactor(chatsvc): name the i64 range in the hierarchy version float check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@@ -25,7 +25,7 @@ pub(super) fn hierarchy_version(body: &Value) -> Result<i64> {
25
25
.as_f64()
26
26
.filter(|float| float.is_finite() && float.fract() == 0.0)
27
27
.filter(|float| {
28
*float >= -9.223_372_036_854_775_808e18 && *float < 9.223_372_036_854_775_808e18
28
*float >= i64::MIN as f64 && *float < i64::MAX as f64
29
29
})
30
30
.map(|float| float as i64)
31
31
}),
@@ -25,7 +25,7 @@ pub(super) fn hierarchy_version(body: &Value) -> Result<i64> {25
.as_f64()25
.as_f64()26
.filter(|float| float.is_finite() && float.fract() == 0.0)26
.filter(|float| float.is_finite() && float.fract() == 0.0)27
.filter(|float| {27
.filter(|float| {28
*float >= -9.223_372_036_854_775_808e18 && *float < 9.223_372_036_854_775_808e1828
*float >= i64::MIN as f64 && *float < i64::MAX as f6429
})29
})30
.map(|float| float as i64)30
.map(|float| float as i64)31
}),31
}),