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:
@ -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 { .. })
|
||||
|
Reference in New Issue
Block a user