From 5673373a7f2f162a6f79aa4a3e2593dc90fc4697 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20Gr=C3=BCnewald?= Date: Mon, 1 Jan 2024 21:50:57 +0100 Subject: [PATCH] Try parse into posts and then unwrap --- src/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.rs b/src/client.rs index d9134dc..2c2a778 100644 --- a/src/client.rs +++ b/src/client.rs @@ -77,7 +77,7 @@ impl<'a> Client<'a> { debug_file.write_all(text.as_bytes())?; */ - Ok(serde_json::from_str(text.as_str())?) + Ok(serde_json::from_str::(text.as_str())?.into()) } }