Skip to content

Commit 097fbd7

Browse files
committed
Fix some broken links in API documentation.
1 parent 6844a18 commit 097fbd7

File tree

11 files changed

+11
-20
lines changed

11 files changed

+11
-20
lines changed

contrib/lib/src/compression/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! Gzip and Brotli response compression.
22
//!
3-
//! See the [`Compression`](compression::Compression) and
4-
//! [`Compress`](compression::Compress) types for further details.
3+
//! See the [`Compression`] and [`Compress`] types for further details.
54
//!
65
//! # Enabling
76
//!

contrib/lib/src/databases.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,6 @@
394394
//!
395395
//! [`FromRequest`]: rocket::request::FromRequest
396396
//! [request guards]: rocket::request::FromRequest
397-
//! [`Poolable`]: databases::Poolable
398397
399398
pub extern crate r2d2;
400399

contrib/lib/src/json.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Automatic JSON (de)serialization support.
22
//!
3-
//! See the [`Json`](json::Json) type for further details.
3+
//! See the [`Json`] type for further details.
44
//!
55
//! # Enabling
66
//!

contrib/lib/src/serve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Custom handler and options for static file serving.
22
//!
3-
//! See the [`StaticFiles`](serve::StaticFiles) type for further details.
3+
//! See the [`StaticFiles`] type for further details.
44
//!
55
//! # Enabling
66
//!

contrib/lib/src/templates/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,6 @@
111111
//! template reloading is disabled to improve performance and cannot be enabled.
112112
//!
113113
//! [`Serialize`]: serde::Serialize
114-
//! [`Template`]: templates::Template
115-
//! [`Template::fairing()`]: templates::Template::fairing()
116-
//! [`Template::custom()`]: templates::Template::custom()
117-
//! [`Template::render()`]: templates::Template::render()
118114
119115
#[cfg(feature = "tera_templates")] pub extern crate tera;
120116
#[cfg(feature = "tera_templates")] mod tera_templates;

core/http/src/accept.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ impl PartialEq for AcceptParams {
130130
/// [`Request::accept()`] method. The [`preferred()`] method can be used to
131131
/// retrieve the client's preferred media type.
132132
///
133-
/// [`Request::accept`]: rocket::Request::accept()
133+
/// [`Request::accept()`]: rocket::Request::accept()
134134
/// [`preferred()`]: Accept::preferred()
135135
///
136136
/// An `Accept` type with a single, common media type can be easily constructed

core/lib/src/config/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@
154154
//! ## Retrieving Configuration Parameters
155155
//!
156156
//! Configuration parameters for the currently active configuration environment
157-
//! can be retrieved via the [`Rocket::config()`] `Rocket` and `get_` methods on
158-
//! [`Config`] structure.
157+
//! can be retrieved via the [`Rocket::config()`](crate::Rocket::config()) method
158+
//! on `Rocket` and `get_` methods on [`Config`] structure.
159159
//!
160160
//! The retrivial of configuration parameters usually occurs at launch time via
161161
//! a [launch fairing](crate::fairing::Fairing). If information about the

core/lib/src/fairing/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
//! to perform an action once a Rocket application has launched.
99
//!
1010
//! To learn more about writing a fairing, see the [`Fairing`] trait
11-
//! documentation. You can also use [`AdHoc`](fairing::AdHoc) to create a
12-
//! fairing on-the-fly from a closure or function.
11+
//! documentation. You can also use [`AdHoc`] to create a fairing on-the-fly
12+
//! from a closure or function.
1313
//!
1414
//! ## Attaching
1515
//!

core/lib/src/local/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//!
1010
//! This module contains a [`Client`] structure that is used to create
1111
//! [`LocalRequest`] structures that can be dispatched against a given
12-
//! [`Rocket`] instance. Usage is straightforward:
12+
//! [`Rocket`](crate::Rocket) instance. Usage is straightforward:
1313
//!
1414
//! 1. Construct a `Rocket` instance that represents the application.
1515
//!
@@ -94,9 +94,6 @@
9494
//! }
9595
//! }
9696
//! ```
97-
//!
98-
//! [`Client`]: local::Client
99-
//! [`LocalRequest`]: local::LocalRequest
10097
10198
mod request;
10299
mod client;

core/lib/src/outcome.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//! including [`FromRequest`](crate::request::FromRequest),
1313
//! [`FromData`](crate::data::FromData), and
1414
//! [`Responder`](crate::response::Responder). It is also the return type of
15-
//! request handlers via the [`Response`] type.
15+
//! request handlers via the [`Response`](crate::response::Response) type.
1616
//!
1717
//! # Success
1818
//!

0 commit comments

Comments
 (0)