Fix type deserialization

This commit is contained in:
2026-08-05 05:22:12 +02:00
parent 5553774d52
commit cfa33e11cc
2 changed files with 58 additions and 8 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ async fn main() -> anyhow::Result<()> {
while let Some(msg) = ws.next().await {
let msg = msg?;
if let tokio_tungstenite::tungstenite::Message::Text(text) = msg {
let token: serde_json::Value = serde_json::from_str(&text)?;
let token: launch::PumpDevEvent = serde_json::from_str(&text)?;
println!("{:?}", token);
}
}