Fix some broken links in API documentation.

This commit is contained in:
Jeb Rosen 2020-05-31 11:31:57 -07:00
parent 6844a189d7
commit 097fbd7df0
11 changed files with 11 additions and 20 deletions

View File

@ -1,7 +1,6 @@
//! Gzip and Brotli response compression. //! Gzip and Brotli response compression.
//! //!
//! See the [`Compression`](compression::Compression) and //! See the [`Compression`] and [`Compress`] types for further details.
//! [`Compress`](compression::Compress) types for further details.
//! //!
//! # Enabling //! # Enabling
//! //!

View File

@ -394,7 +394,6 @@
//! //!
//! [`FromRequest`]: rocket::request::FromRequest //! [`FromRequest`]: rocket::request::FromRequest
//! [request guards]: rocket::request::FromRequest //! [request guards]: rocket::request::FromRequest
//! [`Poolable`]: databases::Poolable
pub extern crate r2d2; pub extern crate r2d2;

View File

@ -1,6 +1,6 @@
//! Automatic JSON (de)serialization support. //! Automatic JSON (de)serialization support.
//! //!
//! See the [`Json`](json::Json) type for further details. //! See the [`Json`] type for further details.
//! //!
//! # Enabling //! # Enabling
//! //!

View File

@ -1,6 +1,6 @@
//! Custom handler and options for static file serving. //! Custom handler and options for static file serving.
//! //!
//! See the [`StaticFiles`](serve::StaticFiles) type for further details. //! See the [`StaticFiles`] type for further details.
//! //!
//! # Enabling //! # Enabling
//! //!

View File

@ -111,10 +111,6 @@
//! template reloading is disabled to improve performance and cannot be enabled. //! template reloading is disabled to improve performance and cannot be enabled.
//! //!
//! [`Serialize`]: serde::Serialize //! [`Serialize`]: serde::Serialize
//! [`Template`]: templates::Template
//! [`Template::fairing()`]: templates::Template::fairing()
//! [`Template::custom()`]: templates::Template::custom()
//! [`Template::render()`]: templates::Template::render()
#[cfg(feature = "tera_templates")] pub extern crate tera; #[cfg(feature = "tera_templates")] pub extern crate tera;
#[cfg(feature = "tera_templates")] mod tera_templates; #[cfg(feature = "tera_templates")] mod tera_templates;

View File

@ -130,7 +130,7 @@ impl PartialEq for AcceptParams {
/// [`Request::accept()`] method. The [`preferred()`] method can be used to /// [`Request::accept()`] method. The [`preferred()`] method can be used to
/// retrieve the client's preferred media type. /// retrieve the client's preferred media type.
/// ///
/// [`Request::accept`]: rocket::Request::accept() /// [`Request::accept()`]: rocket::Request::accept()
/// [`preferred()`]: Accept::preferred() /// [`preferred()`]: Accept::preferred()
/// ///
/// An `Accept` type with a single, common media type can be easily constructed /// An `Accept` type with a single, common media type can be easily constructed

View File

@ -154,8 +154,8 @@
//! ## Retrieving Configuration Parameters //! ## Retrieving Configuration Parameters
//! //!
//! Configuration parameters for the currently active configuration environment //! Configuration parameters for the currently active configuration environment
//! can be retrieved via the [`Rocket::config()`] `Rocket` and `get_` methods on //! can be retrieved via the [`Rocket::config()`](crate::Rocket::config()) method
//! [`Config`] structure. //! on `Rocket` and `get_` methods on [`Config`] structure.
//! //!
//! The retrivial of configuration parameters usually occurs at launch time via //! The retrivial of configuration parameters usually occurs at launch time via
//! a [launch fairing](crate::fairing::Fairing). If information about the //! a [launch fairing](crate::fairing::Fairing). If information about the

View File

@ -8,8 +8,8 @@
//! to perform an action once a Rocket application has launched. //! to perform an action once a Rocket application has launched.
//! //!
//! To learn more about writing a fairing, see the [`Fairing`] trait //! To learn more about writing a fairing, see the [`Fairing`] trait
//! documentation. You can also use [`AdHoc`](fairing::AdHoc) to create a //! documentation. You can also use [`AdHoc`] to create a fairing on-the-fly
//! fairing on-the-fly from a closure or function. //! from a closure or function.
//! //!
//! ## Attaching //! ## Attaching
//! //!

View File

@ -9,7 +9,7 @@
//! //!
//! This module contains a [`Client`] structure that is used to create //! This module contains a [`Client`] structure that is used to create
//! [`LocalRequest`] structures that can be dispatched against a given //! [`LocalRequest`] structures that can be dispatched against a given
//! [`Rocket`] instance. Usage is straightforward: //! [`Rocket`](crate::Rocket) instance. Usage is straightforward:
//! //!
//! 1. Construct a `Rocket` instance that represents the application. //! 1. Construct a `Rocket` instance that represents the application.
//! //!
@ -94,9 +94,6 @@
//! } //! }
//! } //! }
//! ``` //! ```
//!
//! [`Client`]: local::Client
//! [`LocalRequest`]: local::LocalRequest
mod request; mod request;
mod client; mod client;

View File

@ -12,7 +12,7 @@
//! including [`FromRequest`](crate::request::FromRequest), //! including [`FromRequest`](crate::request::FromRequest),
//! [`FromData`](crate::data::FromData), and //! [`FromData`](crate::data::FromData), and
//! [`Responder`](crate::response::Responder). It is also the return type of //! [`Responder`](crate::response::Responder). It is also the return type of
//! request handlers via the [`Response`] type. //! request handlers via the [`Response`](crate::response::Response) type.
//! //!
//! # Success //! # Success
//! //!

View File

@ -41,7 +41,7 @@ use crate::http::Status;
/// } /// }
/// ``` /// ```
/// ///
/// [`Origin`]: crate::::http::uri::Origin /// [`Origin`]: crate::http::uri::Origin
/// [`uri!`]: ../macro.uri.html /// [`uri!`]: ../macro.uri.html
#[derive(Debug)] #[derive(Debug)]
pub struct Redirect(Status, Option<Uri<'static>>); pub struct Redirect(Status, Option<Uri<'static>>);