1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-23 23:51:06 +01:00

fix doc warnings

This commit is contained in:
Rob Ede 2023-11-03 20:00:56 +00:00
parent ecd2016c09
commit 61f16c609a
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
3 changed files with 4 additions and 3 deletions

View File

@ -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.

View File

@ -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;

View File

@ -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>,