mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-29 00:07:48 +02:00
rename .to_async() to .to()
This commit is contained in:
@@ -475,9 +475,10 @@ pub(crate) mod tests {
|
||||
let mut srv = init_service(
|
||||
App::new()
|
||||
.service(
|
||||
web::resource("/none").to(|| -> Option<&'static str> { None }),
|
||||
web::resource("/none")
|
||||
.to(|| async { Option::<&'static str>::None }),
|
||||
)
|
||||
.service(web::resource("/some").to(|| Some("some"))),
|
||||
.service(web::resource("/some").to(|| async { Some("some") })),
|
||||
)
|
||||
.await;
|
||||
|
||||
|
Reference in New Issue
Block a user