Skip to content

Commit 6879bd3

Browse files
committed
fix unstable tests
1 parent e4399bb commit 6879bd3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/nested.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use http_types::headers::HeaderName;
21
use http_types::{Method, Request, Response, Url};
32
use test_utils::BoxFuture;
43
use tide::{Middleware, Next};
@@ -52,7 +51,7 @@ async fn nested_middleware() {
5251
next: Next<'a, State>,
5352
) -> BoxFuture<'a, tide::Result<tide::Response>> {
5453
Box::pin(async move {
55-
let res = next.run(req).await?;
54+
let mut res = next.run(req).await?;
5655
res.insert_header("X-Tide-Test", "1");
5756
Ok(res)
5857
})

0 commit comments

Comments
 (0)