From 88424bb9ec5a2d5fbb718e65c6ecb3f57ba8dc6a Mon Sep 17 00:00:00 2001 From: Luke Chu Date: Mon, 16 May 2022 16:37:14 +0000 Subject: [PATCH] Fix http-request-builder example The previous change added the `` html tag which conflicts with the identifiers used in this example --- examples/http-request-builder/src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/http-request-builder/src/main.rs b/examples/http-request-builder/src/main.rs index 102e9e6e5..574bf015c 100644 --- a/examples/http-request-builder/src/main.rs +++ b/examples/http-request-builder/src/main.rs @@ -17,8 +17,7 @@ async fn fetch_visits(id: &str) -> Result { let url = format!("{}/{}/hits", API_BASE_URL, id); let resp = Request::get(&url).send().await?; - let body = resp.json::().await?; - Ok(body) + Ok(resp.json::().await?) } #[component]