mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +00:00
ws: update simd-json to 0.10.3
This commit is contained in:
parent
8734855c49
commit
fca6cc9fbd
6 changed files with 145 additions and 60 deletions
|
|
@ -26,8 +26,10 @@ impl InMessage {
|
|||
use tungstenite::Message;
|
||||
|
||||
match ws_message {
|
||||
Message::Text(mut text) => {
|
||||
::simd_json::serde::from_str(&mut text).context("deserialize with serde")
|
||||
Message::Text(text) => {
|
||||
let mut text: Vec<u8> = text.into();
|
||||
|
||||
::simd_json::serde::from_slice(&mut text).context("deserialize with serde")
|
||||
}
|
||||
Message::Binary(mut bytes) => {
|
||||
::simd_json::serde::from_slice(&mut bytes[..]).context("deserialize with serde")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue