You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-29 22:01:14 +03:00
Fix rustdoc lints
This commit is contained in:
@ -56,7 +56,7 @@ impl HttpClientFactory {
|
||||
Ok(layer.layer(client))
|
||||
}
|
||||
|
||||
/// Constructs a new [`HttpService`], suitable for [`mas_oidc_client`]
|
||||
/// Constructs a new [`HttpService`], suitable for `mas-oidc-client`
|
||||
///
|
||||
/// # Errors
|
||||
///
|
||||
|
@ -31,7 +31,7 @@ pub enum CompatSessionState {
|
||||
impl CompatSessionState {
|
||||
/// Returns `true` if the compta session state is [`Valid`].
|
||||
///
|
||||
/// [`Valid`]: ComptaSessionState::Valid
|
||||
/// [`Valid`]: CompatSessionState::Valid
|
||||
#[must_use]
|
||||
pub fn is_valid(&self) -> bool {
|
||||
matches!(self, Self::Valid)
|
||||
@ -39,7 +39,7 @@ impl CompatSessionState {
|
||||
|
||||
/// Returns `true` if the compta session state is [`Finished`].
|
||||
///
|
||||
/// [`Finished`]: ComptaSessionState::Finished
|
||||
/// [`Finished`]: CompatSessionState::Finished
|
||||
#[must_use]
|
||||
pub fn is_finished(&self) -> bool {
|
||||
matches!(self, Self::Finished { .. })
|
||||
|
@ -40,7 +40,7 @@ impl AccessTokenState {
|
||||
|
||||
/// Returns `true` if the refresh token state is [`Valid`].
|
||||
///
|
||||
/// [`Valid`]: RefreshTokenState::Valid
|
||||
/// [`Valid`]: AccessTokenState::Valid
|
||||
#[must_use]
|
||||
pub fn is_valid(&self) -> bool {
|
||||
matches!(self, Self::Valid)
|
||||
@ -48,7 +48,7 @@ impl AccessTokenState {
|
||||
|
||||
/// Returns `true` if the refresh token state is [`Revoked`].
|
||||
///
|
||||
/// [`Revoked`]: RefreshTokenState::Revoked
|
||||
/// [`Revoked`]: AccessTokenState::Revoked
|
||||
#[must_use]
|
||||
pub fn is_revoked(&self) -> bool {
|
||||
matches!(self, Self::Revoked { .. })
|
||||
|
@ -15,12 +15,7 @@
|
||||
//! A crate to store keys which can then be used to sign and verify JWTs.
|
||||
|
||||
#![forbid(unsafe_code)]
|
||||
#![deny(
|
||||
clippy::all,
|
||||
clippy::str_to_string,
|
||||
rustdoc::broken_intra_doc_links,
|
||||
rustdoc::all
|
||||
)]
|
||||
#![deny(clippy::all, clippy::str_to_string, rustdoc::broken_intra_doc_links)]
|
||||
#![warn(clippy::pedantic)]
|
||||
|
||||
use std::{ops::Deref, sync::Arc};
|
||||
|
@ -22,6 +22,9 @@
|
||||
#![warn(clippy::pedantic)]
|
||||
#![allow(clippy::module_name_repetitions)]
|
||||
|
||||
//! An utility crate to build flexible [`hyper`] listeners, with optional TLS
|
||||
//! and proxy protocol support.
|
||||
|
||||
use self::{maybe_tls::TlsStreamInfo, proxy_protocol::ProxyProtocolV1Info};
|
||||
|
||||
pub mod maybe_tls;
|
||||
|
@ -39,7 +39,7 @@ pub struct Server<S> {
|
||||
impl<S> Server<S> {
|
||||
/// # Errors
|
||||
///
|
||||
/// Returns an error if the listener couldn't be converted via [`TryInfo`]
|
||||
/// Returns an error if the listener couldn't be converted via [`TryInto`]
|
||||
pub fn try_new<L>(listener: L, service: S) -> Result<Self, L::Error>
|
||||
where
|
||||
L: TryInto<UnixOrTcpListener>,
|
||||
|
@ -21,6 +21,8 @@
|
||||
)]
|
||||
#![warn(clippy::pedantic)]
|
||||
|
||||
//! A crate to help serve single-page apps built by Vite.
|
||||
|
||||
mod vite;
|
||||
|
||||
use std::{future::Future, pin::Pin};
|
||||
|
Reference in New Issue
Block a user