From 9d09ee9d44c7242f66410a0db4f2ea6e036009ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Augusto=20C=C3=A9sar=20Dias?= Date: Mon, 26 Oct 2020 15:12:42 +0100 Subject: [PATCH] Update src/config.rs Co-authored-by: Rob Ede --- src/config.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/config.rs b/src/config.rs index 956e59855..116ccd529 100644 --- a/src/config.rs +++ b/src/config.rs @@ -200,12 +200,9 @@ impl ServiceConfig { self } - /// Set application level arbitrary data item. + /// Set arbitrary data item. /// - /// Application data stored with `App::app_data()` method is available - /// via `HttpRequest::app_data()` method at runtime. - /// - /// Note: this method is ignored for `Scope::configure` method + /// This is same as `App::data()` method. pub fn app_data(&mut self, ext: U) -> &mut Self { self.extensions.insert(ext); self