From 1edfa15d52dd7edb964505c975288fe5288058e8 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Thu, 23 Mar 2023 10:23:56 -0700 Subject: [PATCH] Fix several broken rustdoc links. --- core/codegen/src/lib.rs | 8 ++++---- core/lib/src/request/request.rs | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/codegen/src/lib.rs b/core/codegen/src/lib.rs index 876869b0..1c336859 100644 --- a/core/codegen/src/lib.rs +++ b/core/codegen/src/lib.rs @@ -1061,9 +1061,9 @@ pub fn derive_uri_display_path(input: TokenStream) -> TokenStream { emit!(derive::uri_display::derive_uri_display_path(input)) } -/// Generates a [`Vec`] of [`Route`]s from a set of route paths. +/// Generates a `Vec` of [`Route`]s from a set of route paths. /// -/// The `routes!` macro expands a list of route paths into a [`Vec`] of their +/// The `routes!` macro expands a list of route paths into a `Vec` of their /// corresponding [`Route`] structures. For example, given the following routes: /// /// ```rust @@ -1117,9 +1117,9 @@ pub fn routes(input: TokenStream) -> TokenStream { emit!(bang::routes_macro(input)) } -/// Generates a [`Vec`] of [`Catcher`]s from a set of catcher paths. +/// Generates a `Vec` of [`Catcher`]s from a set of catcher paths. /// -/// The `catchers!` macro expands a list of catcher paths into a [`Vec`] of +/// The `catchers!` macro expands a list of catcher paths into a `Vec` of /// their corresponding [`Catcher`] structures. For example, given the following /// catchers: /// diff --git a/core/lib/src/request/request.rs b/core/lib/src/request/request.rs index 26ec3b41..9acf73af 100644 --- a/core/lib/src/request/request.rs +++ b/core/lib/src/request/request.rs @@ -308,7 +308,7 @@ impl<'r> Request<'r> { /// Because it is common for proxies to forward connections for clients, the /// remote address may contain information about the proxy instead of the /// client. For this reason, proxies typically set a "X-Real-IP" header - /// [`ip_header`](rocket::Config::ip_header) with the client's true IP. To + /// [`ip_header`](crate::Config::ip_header) with the client's true IP. To /// extract this IP from the request, use the [`real_ip()`] or /// [`client_ip()`] methods. /// @@ -358,7 +358,7 @@ impl<'r> Request<'r> { } /// Returns the IP address of the configured - /// [`ip_header`](rocket::Config::ip_header) of the request if such a header + /// [`ip_header`](crate::Config::ip_header) of the request if such a header /// is configured, exists and contains a valid IP address. /// /// # Example @@ -387,7 +387,7 @@ impl<'r> Request<'r> { } /// Attempts to return the client's IP address by first inspecting the - /// [`ip_header`](rocket::Config::ip_header) and then using the remote + /// [`ip_header`](crate::Config::ip_header) and then using the remote /// connection's IP address. Note that the built-in `IpAddr` request guard /// can be used to retrieve the same information in a handler: ///