From 7557b4ce4eef1a11213786c07ad5fe2875cdbf7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matou=C5=A1=20Volf?= Date: Sun, 18 Aug 2024 22:03:49 +0200 Subject: [PATCH] style: macro formatting --- src/models/project.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/models/project.rs b/src/models/project.rs index 2a02eed..5d545e9 100644 --- a/src/models/project.rs +++ b/src/models/project.rs @@ -27,11 +27,7 @@ impl Project { #[derive(Insertable, Serialize, Deserialize, Validate, Clone, Debug)] #[diesel(table_name = projects)] pub struct NewProject { - #[validate(length( - min = "TITLE_LENGTH_MIN", - max = "TITLE_LENGTH_MAX", - code = "title_length" - ))] + #[validate(length(min = "TITLE_LENGTH_MIN", max = "TITLE_LENGTH_MAX", code = "title_length"))] pub title: String, }