Skip to content

Commit

Permalink
fix: more lint
Browse files Browse the repository at this point in the history
  • Loading branch information
darkskygit committed Jul 10, 2024
1 parent b84f08e commit e7a6c07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions y-octo/src/doc/codec/any.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,9 @@ impl From<serde_json::Value> 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),
Expand Down

0 comments on commit e7a6c07

Please sign in to comment.