summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Zaborsky <qrilka@gmail.com>2024-04-07 21:44:20 +0300
committerGitHub <noreply@github.com>2024-04-07 13:44:20 -0500
commita371dacd9ac4953b7a395a61775a575c1910f62b (patch)
tree062e7f524faf9f54501b205f19990eae517e049f
parent271d13ee10396b5caf7129e6268d78cc2b5ae2c8 (diff)
Bump axum version to 0.7 (#96)
-rw-r--r--src/axum.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/axum.rs b/src/axum.rs
index bba133c..0493b72 100644
--- a/src/axum.rs
+++ b/src/axum.rs
@@ -43,7 +43,7 @@ use axum::{
/// }
///
/// fn main() {
-/// let app = Router::<(), Body>::new()
+/// let app = Router::<()>::new()
/// .route("/users", get(filter_users));
/// }
pub struct QsQuery<T>(pub T);
@@ -178,7 +178,7 @@ impl std::error::Error for QsQueryRejection {
/// }
///
/// fn main() {
-/// let app = Router::<(), Body>::new()
+/// let app = Router::<()>::new()
/// .route("/users", get(filter_users))
/// .layer(Extension(QsQueryConfig::new(5, false)
/// .error_handler(|err| {