deprecate on scope and resource too

This commit is contained in:
Rob Ede 2021-06-19 21:25:36 +01:00
parent 43c193ca18
commit 7d4dd477a2
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
2 changed files with 2 additions and 0 deletions

View File

@ -196,6 +196,7 @@ where
/// )); /// ));
/// } /// }
/// ``` /// ```
#[deprecated(since = "4.0.0", note = "Use `.app_data(Data::new(val))` instead.")]
pub fn data<U: 'static>(self, data: U) -> Self { pub fn data<U: 'static>(self, data: U) -> Self {
self.app_data(Data::new(data)) self.app_data(Data::new(data))
} }

View File

@ -146,6 +146,7 @@ where
/// ); /// );
/// } /// }
/// ``` /// ```
#[deprecated(since = "4.0.0", note = "Use `.app_data(Data::new(val))` instead.")]
pub fn data<U: 'static>(self, data: U) -> Self { pub fn data<U: 'static>(self, data: U) -> Self {
self.app_data(Data::new(data)) self.app_data(Data::new(data))
} }