style: macro formatting

This commit is contained in:
Matouš Volf 2024-08-18 22:03:49 +02:00
parent 9324d841fb
commit 7557b4ce4e

View File

@ -27,11 +27,7 @@ impl Project {
#[derive(Insertable, Serialize, Deserialize, Validate, Clone, Debug)] #[derive(Insertable, Serialize, Deserialize, Validate, Clone, Debug)]
#[diesel(table_name = projects)] #[diesel(table_name = projects)]
pub struct NewProject { pub struct NewProject {
#[validate(length( #[validate(length(min = "TITLE_LENGTH_MIN", max = "TITLE_LENGTH_MAX", code = "title_length"))]
min = "TITLE_LENGTH_MIN",
max = "TITLE_LENGTH_MAX",
code = "title_length"
))]
pub title: String, pub title: String,
} }