Fix Clippy warnings blocking release checks
Some checks failed
Validate authentication / Validate authentication (push) Failing after 1s
Some checks failed
Validate authentication / Validate authentication (push) Failing after 1s
This commit is contained in:
parent
e71d9c3118
commit
976ffde7a8
42 changed files with 315 additions and 346 deletions
|
|
@ -38,10 +38,10 @@ fn validate(user_id: i64, retention: MessageRetention) -> Result<(), StorageErro
|
|||
"invalid message storage policy owner".into(),
|
||||
));
|
||||
}
|
||||
if let MessageRetention::Duration { duration_ms } = retention {
|
||||
if !(MIN_RETENTION_DURATION_MS..=MAX_RETENTION_DURATION_MS).contains(&duration_ms) {
|
||||
return Err(StorageError::Other("invalid retention duration".into()));
|
||||
}
|
||||
if let MessageRetention::Duration { duration_ms } = retention
|
||||
&& !(MIN_RETENTION_DURATION_MS..=MAX_RETENTION_DURATION_MS).contains(&duration_ms)
|
||||
{
|
||||
return Err(StorageError::Other("invalid retention duration".into()));
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue