Skip to content

Commit 2f7dc9c

Browse files
authored
doc(lib): resolve rustdoc warning (#3361)
1 parent 277d055 commit 2f7dc9c

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ jobs:
227227
- uses: Swatinem/rust-cache@v2
228228

229229
- name: cargo doc
230-
run: cargo rustdoc --features full,ffi -- --cfg docsrs --cfg hyper_unstable_ffi -D broken-intra-doc-links
230+
run: cargo rustdoc --features full,ffi -- --cfg docsrs --cfg hyper_unstable_ffi -D rustdoc::broken-intra-doc-links
231231

232232
check-external-types:
233233
name: Check exposed types

src/body/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
//!
88
//! There are two pieces to this in hyper:
99
//!
10-
//! - **The [`Body`](Body) trait** describes all possible bodies.
10+
//! - **The [`Body`] trait** describes all possible bodies.
1111
//! hyper allows any body type that implements `Body`, allowing
1212
//! applications to have fine-grained control over their streaming.
13-
//! - **The [`Incoming`](Incoming) concrete type**, which is an implementation
13+
//! - **The [`Incoming`] concrete type**, which is an implementation
1414
//! of `Body`, and returned by hyper as a "receive stream" (so, for server
1515
//! requests and client responses).
1616
//!

src/client/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! HTTP Client
22
//!
3-
//! hyper provides HTTP over a single connection. See the [`conn`](conn) module.
3+
//! hyper provides HTTP over a single connection. See the [`conn`] module.
44
//!
55
//! ## Example
66
//!

src/server/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
//!
66
//! How exactly you choose to listen for connections is not something hyper
77
//! concerns itself with. After you have a connection, you can handle HTTP over
8-
//! it with the types in the [`conn`](conn) module.
8+
//! it with the types in the [`conn`] module.
99
pub mod conn;

src/service/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Asynchronous Services
22
//!
3-
//! A [`Service`](Service) is a trait representing an asynchronous
3+
//! A [`Service`] is a trait representing an asynchronous
44
//! function of a request to a response. It's similar to
55
//! `async fn(Request) -> Result<Response, Error>`.
66
//!
@@ -17,7 +17,7 @@
1717
//! to a single connection. It defines how to respond to **all** requests that
1818
//! connection will receive.
1919
//!
20-
//! The helper [`service_fn`](service_fn) should be sufficient for most cases, but
20+
//! The helper [`service_fn`] should be sufficient for most cases, but
2121
//! if you need to implement `Service` for a type manually, you can follow the example
2222
//! in `service_struct_impl.rs`.
2323

src/upgrade.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ pub struct OnUpgrade {
7373
rx: Option<oneshot::Receiver<crate::Result<Upgraded>>>,
7474
}
7575

76-
/// The deconstructed parts of an [`Upgraded`](Upgraded) type.
76+
/// The deconstructed parts of an [`Upgraded`] type.
7777
///
7878
/// Includes the original IO type, and a read buffer of bytes that the
7979
/// HTTP state machine may have already read before completing an upgrade.

0 commit comments

Comments
 (0)