1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-30 00:14:58 +02:00

deprecate App::data and App::data_factory (#2271)

This commit is contained in:
Rob Ede
2021-06-22 15:50:58 +01:00
committed by GitHub
parent 2d8530feb3
commit 12f7720309
11 changed files with 42 additions and 3 deletions

View File

@ -1028,6 +1028,8 @@ async fn test_normalize() {
assert!(response.status().is_success());
}
// allow deprecated App::data
#[allow(deprecated)]
#[actix_rt::test]
async fn test_data_drop() {
use std::sync::{