summaryrefslogtreecommitdiff
path: root/src/axum.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/axum.rs')
-rw-r--r--src/axum.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/axum.rs b/src/axum.rs
index 1605146..90b69b8 100644
--- a/src/axum.rs
+++ b/src/axum.rs
@@ -177,10 +177,10 @@ impl std::error::Error for QsQueryRejection {
/// fn main() {
/// let app = Router::<Body>::new()
/// .route("/users", get(filter_users))
-/// .layer(Extension(Arc::new(QsQueryConfig::new(5, false)
+/// .layer(Extension(QsQueryConfig::new(5, false)
/// .error_handler(|err| {
/// QsQueryRejection::new(err, StatusCode::UNPROCESSABLE_ENTITY)
-/// }))));
+/// })));
/// }
pub struct QsQueryConfig {
max_depth: usize,