Fix broken links in docs

This commit is contained in:
Emi Tatsuo 2020-12-05 11:37:14 -05:00
parent 7add331e0b
commit 1068c00e55
Signed by: Emi
GPG key ID: 68FAB2E2E6DFC98B

View file

@ -103,7 +103,7 @@ where
/// Any requests passed to the handler will be directly handed down to the handler, /// Any requests passed to the handler will be directly handed down to the handler,
/// with the request as the first argument. The response provided will be sent to the /// with the request as the first argument. The response provided will be sent to the
/// requester. If the handler panics or returns an [`Err`], this will be logged, and /// requester. If the handler panics or returns an [`Err`], this will be logged, and
/// the requester will be sent a [`SERVER_ERROR`](Response::server_error()). /// the requester will be sent a [`TEMPORARY FAILURE`](Response::temporary_failure()).
fn from(handler: H) -> Self { fn from(handler: H) -> Self {
Self::FnHandler( Self::FnHandler(
Box::new(move|req| Box::pin((handler)(req)) as HandlerResponse) Box::new(move|req| Box::pin((handler)(req)) as HandlerResponse)