fix: doc-tests

This commit is contained in:
DavidOnTop 2024-10-20 11:06:56 +02:00
parent dee03ecf33
commit 1b8a9f9bb3
No known key found for this signature in database
GPG key ID: 5D05538A45D5149F
4 changed files with 10 additions and 10 deletions

6
Cargo.lock generated
View file

@ -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",

View file

@ -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 <me@davidon.top>"]
authors = ["DavidOnTop <me@davidon.top>"]
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 }

View file

@ -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 <me@davidon.top>"]
authors = ["DavidOnTop <me@davidon.top>"]
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

View file

@ -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;