From 0f191e16cf36344341472bac5cf98c10dc669d42 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 17 Sep 2021 14:03:45 -0400 Subject: [PATCH] Fix clippy --- crates/db_views/src/comment_report_view.rs | 2 +- crates/db_views/src/post_report_view.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/db_views/src/comment_report_view.rs b/crates/db_views/src/comment_report_view.rs index 38e710805..f0dbb4b53 100644 --- a/crates/db_views/src/comment_report_view.rs +++ b/crates/db_views/src/comment_report_view.rs @@ -420,7 +420,7 @@ mod tests { let read_jessica_report_view_after_resolve = CommentReportView::read(&conn, inserted_jessica_report.id).unwrap(); - let mut expected_jessica_report_view_after_resolve = expected_jessica_report_view.clone(); + let mut expected_jessica_report_view_after_resolve = expected_jessica_report_view; expected_jessica_report_view_after_resolve .comment_report .resolved = true; diff --git a/crates/db_views/src/post_report_view.rs b/crates/db_views/src/post_report_view.rs index 71e322d83..36bee024b 100644 --- a/crates/db_views/src/post_report_view.rs +++ b/crates/db_views/src/post_report_view.rs @@ -404,7 +404,7 @@ mod tests { let read_jessica_report_view_after_resolve = PostReportView::read(&conn, inserted_jessica_report.id).unwrap(); - let mut expected_jessica_report_view_after_resolve = expected_jessica_report_view.clone(); + let mut expected_jessica_report_view_after_resolve = expected_jessica_report_view; expected_jessica_report_view_after_resolve .post_report .resolved = true;