summaryrefslogtreecommitdiffstats
path: root/server/src/api/comment.rs
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2019-12-09 11:08:19 -0800
committerDessalines <tyhou13@gmx.com>2019-12-09 11:08:19 -0800
commitfaef62e073086b3fbc11ee36bde0e8e8c96e24a6 (patch)
tree0d09924fb6bda1cd30af25dda6862e970fa3c45b /server/src/api/comment.rs
parentdbc62a1b32f760a66421a2c75c0b935e2f01d45e (diff)
Switching to shorthands for rust params.
Diffstat (limited to 'server/src/api/comment.rs')
-rw-r--r--server/src/api/comment.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/api/comment.rs b/server/src/api/comment.rs
index a5ccd358..eb5da62b 100644
--- a/server/src/api/comment.rs
+++ b/server/src/api/comment.rs
@@ -118,7 +118,7 @@ impl Perform<CommentResponse> for Oper<CreateComment> {
let like_form = CommentLikeForm {
comment_id: inserted_comment.id,
post_id: data.post_id,
- user_id: user_id,
+ user_id,
score: 1,
};
@@ -262,7 +262,7 @@ impl Perform<CommentResponse> for Oper<SaveComment> {
let comment_saved_form = CommentSavedForm {
comment_id: data.comment_id,
- user_id: user_id,
+ user_id,
};
if data.save {
@@ -312,7 +312,7 @@ impl Perform<CommentResponse> for Oper<CreateCommentLike> {
let like_form = CommentLikeForm {
comment_id: data.comment_id,
post_id: data.post_id,
- user_id: user_id,
+ user_id,
score: data.score,
};