Skip to content

Commit 757a159

Browse files
committed
fix tests
1 parent bc1f174 commit 757a159

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/endpoint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ use crate::{Middleware, Request, Response};
3838
/// ```no_run
3939
/// # use core::future::Future;
4040
/// fn hello(_req: tide::Request<()>) -> impl Future<Output = tide::Result<String>> {
41-
/// futures::future::ready(Ok(String::from("hello")))
41+
/// async_std::future::ready(Ok(String::from("hello")))
4242
/// }
4343
///
4444
/// fn main() {

src/response.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ impl Response {
5454
///
5555
/// ```
5656
/// # use tide::{Response, Request, StatusCode};
57-
/// # fn canonicalize(uri: &url::Url) -> Option<&url::Url> { None }
57+
/// # fn canonicalize(uri: &tide::http::Url) -> Option<&tide::http::Url> { None }
5858
/// # #[allow(dead_code)]
5959
/// async fn route_handler(request: Request<()>) -> tide::Result {
6060
/// if let Some(canonical_redirect) = canonicalize(request.uri()) {

0 commit comments

Comments
 (0)