about summary refs log tree commit diff
path: root/src/micropub/post.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/micropub/post.rs')
-rw-r--r--src/micropub/post.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/micropub/post.rs b/src/micropub/post.rs
index edadeed..639346b 100644
--- a/src/micropub/post.rs
+++ b/src/micropub/post.rs
@@ -271,10 +271,10 @@ pub async fn new_post<S: Storage>(
     // do background processing on the post
     async_std::task::spawn(post_process_new_post(req, post));
 
-    return Ok(Response::builder(202)
+    Ok(Response::builder(202)
         .header("Location", &uid)
         .body(json!({"status": "accepted", "location": &uid}))
-        .build());
+        .build())
 }
 
 async fn create_feed(
@@ -519,7 +519,7 @@ async fn process_json<S: Storage>(
                 if let Err(error) = req.state().storage.delete_post(&url).await {
                     return Ok(error.into());
                 }
-                return Ok(Response::builder(200).build());
+                Ok(Response::builder(200).build())
             }
             "update" => {
                 if !user.check_scope("update") {
@@ -530,9 +530,9 @@ async fn process_json<S: Storage>(
                     );
                 }
                 if let Err(error) = req.state().storage.update_post(&url, body.clone()).await {
-                    return Ok(error.into());
+                    Ok(error.into())
                 } else {
-                    return Ok(Response::builder(204).build());
+                    Ok(Response::builder(204).build())
                 }
             }
             _ => return error_json!(400, "invalid_request", "This action is not supported."),