BlueGit

ict rusty-teams

refactor(chatsvc): name the i64 range in the hierarchy version float check

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

metis Daniel Däschle · pushed by metis

Authored 2026-10-12 · 7 weeks ago

Hash
5f988f0b434e32ddec4d6386af47d8be99ca4c30
Parent
6b00b5a9
1 file changed +1 −1
crates/chatsvc/src/pins/state.rs +1 −1
@@ -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_808e18
28 *float >= i64::MIN as f64 && *float < i64::MAX as f64
29 })
29 })
30 .map(|float| float as i64)
30 .map(|float| float as i64)
31 }),
31 }),