From a00722505b3f4d523787935dd2776e62c45b27ba Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 28 Jan 2019 19:34:52 -0800 Subject: rustfmt --- rust/src/entity_crud.rs | 9 ++++++--- 1 file 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 { -- cgit v1.2.3