diff --git a/examples/http-request-builder/src/main.rs b/examples/http-request-builder/src/main.rs index 98f246fd4..d482a53c9 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) + resp.json::().await } #[component] diff --git a/packages/sycamore/src/html.rs b/packages/sycamore/src/html.rs index e22a95cf3..d57f17662 100644 --- a/packages/sycamore/src/html.rs +++ b/packages/sycamore/src/html.rs @@ -63,6 +63,7 @@ define_elements! { bdi {}, bdo {}, blockquote {}, + body {}, br {}, /// The `