From e7a6c0708577209d210f18fb92f5b4bf575b588f Mon Sep 17 00:00:00 2001 From: DarkSky Date: Wed, 10 Jul 2024 11:25:55 +0800 Subject: [PATCH] fix: more lint --- y-octo/src/doc/codec/any.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/y-octo/src/doc/codec/any.rs b/y-octo/src/doc/codec/any.rs index 7880295..adaa31b 100644 --- a/y-octo/src/doc/codec/any.rs +++ b/y-octo/src/doc/codec/any.rs @@ -366,9 +366,9 @@ impl From for Any { if n.is_f64() { Self::Float64(n.as_f64().unwrap().into()) } else if n.is_i64() { - Self::Integer(n.as_i64().unwrap() as u64) + Self::Integer(n.as_i64().unwrap() as i32) } else { - Self::Integer(n.as_u64().unwrap()) + Self::Integer(n.as_u64().unwrap() as i32) } } serde_json::Value::String(s) => Self::String(s),