aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src/entity_crud.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/entity_crud.rs')
-rw-r--r--rust/src/entity_crud.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/rust/src/entity_crud.rs b/rust/src/entity_crud.rs
index 73e7aa58..743d451a 100644
--- a/rust/src/entity_crud.rs
+++ b/rust/src/entity_crud.rs
@@ -1968,21 +1968,24 @@ impl EntityCrud for ReleaseEntity {
if abstracts.len() > 200 {
return Err(FatcatError::BadRequest(
"too many abstracts (sanity cap is 200)".to_string(),
- ).into())
+ )
+ .into());
}
}
if let Some(ref refs) = entity.abstracts {
if refs.len() > 10000 {
return Err(FatcatError::BadRequest(
"too many refs (sanity cap is 10000)".to_string(),
- ).into())
+ )
+ .into());
}
}
if let Some(ref contribs) = entity.contribs {
if contribs.len() > 10000 {
return Err(FatcatError::BadRequest(
"too many contributors (sanity cap is 10000)".to_string(),
- ).into())
+ )
+ .into());
}
for contrib in contribs {
if let Some(ref role) = contrib.role {