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;