diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-28 19:34:52 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-28 19:34:52 -0800 |
commit | a00722505b3f4d523787935dd2776e62c45b27ba (patch) | |
tree | cf67efcedb35116e926e34c4c27f5fc6826950e8 | |
parent | 7864b13105897066ddb1499ad936c885c2cfb3fb (diff) | |
download | fatcat-a00722505b3f4d523787935dd2776e62c45b27ba.tar.gz fatcat-a00722505b3f4d523787935dd2776e62c45b27ba.zip |
rustfmt
-rw-r--r-- | rust/src/entity_crud.rs | 9 |
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 { |