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)]
#[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,
}