From 3f266269cca9a6e9a2a5d4288f4d0721ac003d25 Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Sat, 22 Feb 2020 16:55:16 +0800 Subject: [PATCH] api: use our shorthand method for returning --- src/api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api.rs b/src/api.rs index baa8135..7f85f98 100644 --- a/src/api.rs +++ b/src/api.rs @@ -328,5 +328,5 @@ fn items_sync( .fold(false, |x, y| x || y) }).collect(); - Custom(Status::Ok, Json(Response::Success(resp))) + success_resp(resp) } \ No newline at end of file