Skip to content

Commit

Permalink
chore: 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 42cafe5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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
1 change: 0 additions & 1 deletion y-octo/src/protocol/awareness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ pub fn write_awareness<W: Write>(buffer: &mut W, clients: &AwarenessStates) -> R
Ok(())
}


// TODO(@darkskygit): impl reader/writer
// awareness state message
#[allow(dead_code)]
Expand Down

0 comments on commit 42cafe5

Please sign in to comment.