1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 06:39:22 +02:00

fix dev dependencies

This commit is contained in:
Nikolay Kim
2019-04-02 15:00:10 -07:00
parent db1f7651a3
commit 4227cddd30
8 changed files with 15 additions and 13 deletions

View File

@ -552,7 +552,7 @@ impl<P> FromRequest<P> for PathBufWrp {
type Future = Result<Self, Self::Error>;
fn from_request(req: &mut ServiceFromRequest<P>) -> Self::Future {
PathBufWrp::get_pathbuf(req.match_info().path())
PathBufWrp::get_pathbuf(req.request().match_info().path())
}
}
@ -1049,7 +1049,7 @@ mod tests {
.new_service(&()),
)
.unwrap();
let req = TestRequest::with_uri("/missing").to_service();
let req = TestRequest::with_uri("/missing").to_srv_request();
let mut resp = test::call_success(&mut st, req);
assert_eq!(resp.status(), StatusCode::OK);