From 1b8a9f9bb3bd3b7a121104897188922a9b1de19c Mon Sep 17 00:00:00 2001 From: davidontop Date: Sun, 20 Oct 2024 11:06:56 +0200 Subject: [PATCH] fix: doc-tests --- Cargo.lock | 6 +++--- Cargo.toml | 6 +++--- macros/Cargo.toml | 6 +++--- src/middleware.rs | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d69db20..f59dac2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "addr2line" @@ -641,7 +641,7 @@ dependencies = [ [[package]] name = "leptos_reactive_axum" -version = "1.0.0" +version = "1.0.1" dependencies = [ "axum", "axum-test", @@ -657,7 +657,7 @@ dependencies = [ [[package]] name = "leptos_reactive_axum_macros" -version = "1.0.0" +version = "1.0.1" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index eefb19e..4840f7f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,14 +3,14 @@ members = ["macros", "."] [package] name = "leptos_reactive_axum" -version = "1.0.0" +version = "1.0.1" edition = "2021" description = "reactive context for axum handlers" -authors = ["davidontop "] +authors = ["DavidOnTop "] readme = "README.md" documentation = "https://docs.rs/leptos_reactive_axum" license = "MIT" -repository = "https://git.davidon.top/public/leptos_reactive_axum.git" +repository = "https://github.com/davidon-top/leptos_reactive_axum.git" [dependencies] leptos_reactive_axum_macros = { path = "./macros", version = "1", optional = true } diff --git a/macros/Cargo.toml b/macros/Cargo.toml index 7a2ec90..4f867db 100644 --- a/macros/Cargo.toml +++ b/macros/Cargo.toml @@ -1,13 +1,13 @@ [package] name = "leptos_reactive_axum_macros" -version = "1.0.0" +version = "1.0.1" edition = "2021" description = "reactive context for axum handlers" -authors = ["davidontop "] +authors = ["DavidOnTop "] readme = "../README.md" documentation = "https://docs.rs/leptos_reactive_axum_macros" license = "MIT" -repository = "https://git.davidon.top/public/leptos_reactive_axum.git" +repository = "https://github.com/davidon-top/leptos_reactive_axum.git" [lib] proc-macro = true diff --git a/src/middleware.rs b/src/middleware.rs index cac226d..f8db462 100644 --- a/src/middleware.rs +++ b/src/middleware.rs @@ -4,7 +4,7 @@ use axum::{extract::Request, response::Response}; use tower::{Layer, Service}; /// ```rust -/// axum::Router::new().layer(ReactiveLayer); +/// axum::Router::<()>::new().layer(leptos_reactive_axum::middleware::ReactiveLayer); /// ``` #[derive(Clone)] pub struct ReactiveLayer;