From 61f16c609a801bc5be65952b213af3177b0542c5 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Fri, 3 Nov 2023 20:00:56 +0000 Subject: [PATCH] fix doc warnings --- actix-settings/src/settings/mod.rs | 2 +- actix-web-httpauth/src/extractors/config.rs | 2 +- actix-web-httpauth/src/headers/authorization/scheme/bearer.rs | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/actix-settings/src/settings/mod.rs b/actix-settings/src/settings/mod.rs index 839649e14..514b01fa3 100644 --- a/actix-settings/src/settings/mod.rs +++ b/actix-settings/src/settings/mod.rs @@ -26,7 +26,7 @@ pub struct ActixSettings { /// Marker of intended deployment environment. pub mode: Mode, - /// True if the [`Compress`](actix_web::middleware::Compress) middleware should be enabled. + /// True if the `Compress` middleware should be enabled. pub enable_compression: bool, /// True if the [`Logger`](actix_web::middleware::Logger) middleware should be enabled. diff --git a/actix-web-httpauth/src/extractors/config.rs b/actix-web-httpauth/src/extractors/config.rs index 761e989d1..d1d7d89b3 100644 --- a/actix-web-httpauth/src/extractors/config.rs +++ b/actix-web-httpauth/src/extractors/config.rs @@ -2,7 +2,7 @@ use super::AuthenticationError; use crate::headers::www_authenticate::Challenge; /// Trait implemented for types that provides configuration for the authentication -/// [extractors](super::AuthExtractor). +/// [extractors](crate::extractors). pub trait AuthExtractorConfig { /// Associated challenge type. type Inner: Challenge; diff --git a/actix-web-httpauth/src/headers/authorization/scheme/bearer.rs b/actix-web-httpauth/src/headers/authorization/scheme/bearer.rs index 13068b67f..842c9be76 100644 --- a/actix-web-httpauth/src/headers/authorization/scheme/bearer.rs +++ b/actix-web-httpauth/src/headers/authorization/scheme/bearer.rs @@ -9,9 +9,10 @@ use crate::headers::authorization::{errors::ParseError, scheme::Scheme}; /// Credentials for `Bearer` authentication scheme, defined in [RFC 6750]. /// -/// Should be used in combination with [`Authorization`](super::Authorization) header. +/// Should be used in combination with [`Authorization`] header. /// /// [RFC 6750]: https://tools.ietf.org/html/rfc6750 +/// [`Authorization`]: crate::headers::authorization::Authorization #[derive(Clone, Eq, Ord, PartialEq, PartialOrd)] pub struct Bearer { token: Cow<'static, str>,