1
0
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:
Quentin Gliech
2023-01-18 12:25:49 +01:00
parent 142fdbd45a
commit 3798f25f7d
7 changed files with 12 additions and 12 deletions

View File

@ -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 { .. })

View File

@ -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 { .. })