- use crate::comment_report_view::{CommentReportQueryBuilder, CommentReportView};
- use lemmy_db_queries::{
- aggregates::comment_aggregates::CommentAggregates,
- establish_unpooled_connection,
- Crud,
- Joinable,
- Reportable,
+ #![allow(clippy::unwrap_used)]
+ #![allow(clippy::indexing_slicing)]
+
+ use crate::comment_report_view::{CommentReportQuery, CommentReportView};
+ use lemmy_db_schema::{
+ aggregates::structs::CommentAggregates,
+ source::{
+ comment::{Comment, CommentInsertForm},
+ comment_report::{CommentReport, CommentReportForm},
+ community::{Community, CommunityInsertForm, CommunityModerator, CommunityModeratorForm},
+ instance::Instance,
+ person::{Person, PersonInsertForm},
+ post::{Post, PostInsertForm},
+ },
+ traits::{Crud, Joinable, Reportable},
+ utils::build_db_pool_for_tests,