fmt
Some checks failed
CI / Check / Test (push) Has been cancelled

This commit is contained in:
2026-06-10 03:24:17 +02:00
parent deae83cfd1
commit 6e21ec115d
6 changed files with 38 additions and 9 deletions

View File

@@ -35,7 +35,9 @@ pub struct UserProfile {
impl UserProfile {
pub const MAX_CUSTOM_FIELDS: usize = 4;
pub fn validate_custom_fields(fields: &[ProfileField]) -> Result<(), crate::errors::DomainError> {
pub fn validate_custom_fields(
fields: &[ProfileField],
) -> Result<(), crate::errors::DomainError> {
if fields.len() > Self::MAX_CUSTOM_FIELDS {
Err(crate::errors::DomainError::ValidationError(
"Maximum 4 profile fields allowed".into(),