From 951aabb61d3c01e68a81b4ddf2090cfcf945f732 Mon Sep 17 00:00:00 2001 From: Sam Scott Date: Sat, 7 Jan 2023 13:59:50 -0600 Subject: Fix axum examples. --- src/axum.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/axum.rs') diff --git a/src/axum.rs b/src/axum.rs index 2638b3c..bba133c 100644 --- a/src/axum.rs +++ b/src/axum.rs @@ -43,7 +43,7 @@ use axum::{ /// } /// /// fn main() { -/// let app = Router::::new() +/// let app = Router::<(), Body>::new() /// .route("/users", get(filter_users)); /// } pub struct QsQuery(pub T); @@ -72,6 +72,7 @@ impl std::fmt::Debug for QsQuery { impl FromRequestParts for QsQuery where T: serde::de::DeserializeOwned, + S: Send + Sync, { type Rejection = QsQueryRejection; @@ -177,7 +178,7 @@ impl std::error::Error for QsQueryRejection { /// } /// /// fn main() { -/// let app = Router::::new() +/// let app = Router::<(), Body>::new() /// .route("/users", get(filter_users)) /// .layer(Extension(QsQueryConfig::new(5, false) /// .error_handler(|err| { -- cgit v1.2.3