Skip to content

Commit fc30112

Browse files
committed
fix ci
1 parent 62dce67 commit fc30112

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

src/request.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ use async_std::task::{Context, Poll};
77
use std::pin::Pin;
88
use std::{str::FromStr, sync::Arc};
99

10-
use crate::cookies::{Cookie, CookieData};
10+
use crate::cookies::CookieData;
11+
use crate::http::cookies::Cookie;
1112
use crate::http::headers::{HeaderName, HeaderValue};
1213
use crate::http::{self, Method, StatusCode, Url, Version};
1314
use crate::Response;

tests/nested.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
use futures::future::BoxFuture;
1+
use http_types::headers::{HeaderName, HeaderValue};
2+
use http_types::{Method, Request, Url};
23
use std::str::FromStr;
34
use tide::http::headers::{HeaderName, HeaderValue};
45
use tide::http::{Method, Request, Response, Url};
56
use tide::{Middleware, Next};
7+
use test_utils::BoxFuture;
8+
9+
mod test_utils;
610

711
#[async_std::test]
812
async fn nested() {

tests/route_middleware.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use http_types::{headers::HeaderName, Method, Request};
1+
use http_types::headers::HeaderName;
22
use std::convert::TryInto;
33
use tide::http::{self, Method};
44
use tide::Middleware;

tests/test_utils.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use std::pin::Pin;
99
pub type BoxFuture<'a, T> = Pin<Box<dyn Future<Output = T> + Send + 'a>>;
1010

1111
/// Find an unused port.
12+
#[allow(dead_code)]
1213
pub async fn find_port() -> u16 {
1314
pick_unused_port().expect("No ports free")
1415
}

0 commit comments

Comments
 (0)