aboutsummaryrefslogtreecommitdiffstats
path: root/rust
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-06-19 17:41:06 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-06-19 17:41:06 -0700
commitf0e49dfcf389a099fd5a46c1ee8f7d2b89efeb00 (patch)
treed67d6057c73713b291f4a125e05f00deaca4a30b /rust
parent81daf14fddf6c9671bbf065a07eb4e573749cbfe (diff)
downloadfatcat-f0e49dfcf389a099fd5a46c1ee8f7d2b89efeb00.tar.gz
fatcat-f0e49dfcf389a099fd5a46c1ee8f7d2b89efeb00.zip
satisfy rustfmt
Diffstat (limited to 'rust')
-rw-r--r--rust/src/api_server.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/rust/src/api_server.rs b/rust/src/api_server.rs
index b6445535..44f266a4 100644
--- a/rust/src/api_server.rs
+++ b/rust/src/api_server.rs
@@ -81,7 +81,8 @@ macro_rules! wrap_entity_handlers {
macro_rules! entity_batch_handler {
($post_handler:ident, $post_batch_handler:ident, $model:ident) => {
- fn $post_batch_handler(&self, entity_list: &Vec<models::$model>) -> Result<Vec<EntityEdit>> {
+ fn $post_batch_handler(&self, entity_list: &Vec<models::$model>) ->
+ Result<Vec<EntityEdit>> {
let conn = self.db_pool.get().expect("db_pool error");
// TODO: start a transaction
let mut ret: Vec<EntityEdit> = vec![];