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 new clippy 0.1.63 warnings
This commit is contained in:
committed by
Quentin Gliech
parent
759809b7fd
commit
5c8b442747
@ -26,7 +26,7 @@ use crate::{StorageBackend, StorageBackendMarker, User};
|
||||
|
||||
static DEVICE_ID_LENGTH: usize = 10;
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Serialize)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
|
||||
#[serde(transparent)]
|
||||
pub struct Device {
|
||||
id: String,
|
||||
|
@ -24,7 +24,7 @@ use url::Url;
|
||||
|
||||
use crate::traits::{StorageBackend, StorageBackendMarker};
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Serialize)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum JwksOrJwksUri {
|
||||
/// Client's JSON Web Key Set document, passed by value.
|
||||
|
@ -200,7 +200,7 @@ fn base62_encode(mut num: u32) -> String {
|
||||
const CRC: Crc<u32> = Crc::<u32>::new(&CRC_32_ISO_HDLC);
|
||||
|
||||
/// Invalid token
|
||||
#[derive(Debug, Error, PartialEq)]
|
||||
#[derive(Debug, Error, PartialEq, Eq)]
|
||||
pub enum TokenFormatError {
|
||||
/// Overall token format is invalid
|
||||
#[error("invalid token format")]
|
||||
|
@ -161,7 +161,7 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Serialize)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
|
||||
pub enum UserEmailVerificationState {
|
||||
AlreadyUsed { when: DateTime<Utc> },
|
||||
Expired,
|
||||
|
Reference in New Issue
Block a user