aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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![];