1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 10:27:42 +02:00

update actix-service dep

This commit is contained in:
Nikolay Kim
2019-12-08 19:25:24 +06:00
parent 4a8a9ef405
commit 1f3ffe38e8
8 changed files with 27 additions and 24 deletions

View File

@ -822,7 +822,7 @@ where
#[cfg(test)]
mod tests {
use actix_service::{service_fn2, Transform};
use actix_service::{fn_service, Transform};
use actix_web::test::{self, TestRequest};
use super::*;
@ -1083,7 +1083,7 @@ mod tests {
.expose_headers(exposed_headers.clone())
.allowed_header(header::CONTENT_TYPE)
.finish()
.new_transform(service_fn2(|req: ServiceRequest| {
.new_transform(fn_service(|req: ServiceRequest| {
ok(req.into_response(
HttpResponse::Ok().header(header::VARY, "Accept").finish(),
))