From 42716d325294be180b6c73a40bf711ce2c08f2a2 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Sun, 26 Nov 2017 22:59:04 -0800 Subject: [PATCH] update tests --- .travis.yml | 2 +- tests/test_httprequest.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1ffdc132a..121ba990e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -38,7 +38,7 @@ script: after_success: - | if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_PULL_REQUEST" = "false" && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_RUST_VERSION" == "nightly" ]]; then - cargo doc --no-deps && + cargo doc --features alpn --no-deps && echo "" > target/doc/index.html && git clone https://github.com/davisp/ghp-import.git && ./ghp-import/ghp_import.py -n -p -f -m "Documentation upload" -r https://"$GH_TOKEN"@github.com/"$TRAVIS_REPO_SLUG.git" target/doc && diff --git a/tests/test_httprequest.rs b/tests/test_httprequest.rs index de9ded093..6bd01f743 100644 --- a/tests/test_httprequest.rs +++ b/tests/test_httprequest.rs @@ -3,7 +3,7 @@ extern crate http; extern crate time; use std::str; -use actix_web::*; +use actix_web::dev::*; use http::{header, Method, Version, HeaderMap};