From 5e9715e92d89618915dcf357a3135ce2219dfbf7 Mon Sep 17 00:00:00 2001 From: RuangyotN Date: Mon, 24 Mar 2025 21:50:38 +0700 Subject: [PATCH] fix: doctest ServiceConfig::register() error (#250) --- ntex/src/web/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ntex/src/web/config.rs b/ntex/src/web/config.rs index 3d23b710..0f7ef423 100644 --- a/ntex/src/web/config.rs +++ b/ntex/src/web/config.rs @@ -133,9 +133,9 @@ impl ServiceConfig { /// # Examples /// /// ```rust - /// use ntex::web::ServiceConfig; + /// use ntex::web::{ServiceConfig, DefaultError}; /// - /// let config = ServiceConfig::register(); + /// let config: ServiceConfig = ServiceConfig::register(); /// ``` pub fn register() -> Self { Self {