diff --git a/Cargo.toml b/Cargo.toml index f2c80fd..16ca728 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ repository = "https://github.com/robertwayne/axum-htmx" categories = ["web-programming"] keywords = ["axum", "htmx"] readme = "README.md" -version = "0.2.0" +version = "0.2.1" edition = "2021" [features] diff --git a/README.md b/README.md index 5bb1597..ab9f846 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ responses and partial responses _(as the page can be accessed directly or through a boosted anchor)_, so we look for the `HX-Boosted` header and extend from a `_partial.html` template instead. -```rs +```rust use axum::response::IntoResponse; use axum_htmx::HxBoosted; @@ -95,7 +95,7 @@ async fn get_index(HxBoosted(boosted): HxBoosted) -> impl IntoResponse { ### Example: Router Guard -```rs +```rust use axum::Router; use axum_htmx::HxRequestGuardLayer;