summaryrefslogtreecommitdiffstats
path: root/rust
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-28 19:34:52 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-28 19:34:52 -0800
commita00722505b3f4d523787935dd2776e62c45b27ba (patch)
treecf67efcedb35116e926e34c4c27f5fc6826950e8 /rust
parent7864b13105897066ddb1499ad936c885c2cfb3fb (diff)
downloadfatcat-a00722505b3f4d523787935dd2776e62c45b27ba.tar.gz
fatcat-a00722505b3f4d523787935dd2776e62c45b27ba.zip
rustfmt
Diffstat (limited to 'rust')
-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 {