use prelude instead of specific imports for diesel traits

sooooo many traits
This commit is contained in:
Zynh0722 2023-11-06 20:42:20 -08:00
parent da718cf238
commit 40a5b99f02

View file

@ -20,9 +20,7 @@ use axum::{
Router, Router,
}; };
use diesel::{ use diesel::prelude::*;
result::OptionalExtension, BelongingToDsl, ExpressionMethods, QueryDsl, SelectableHelper,
};
use diesel_async::{ use diesel_async::{
pooled_connection::{deadpool::Pool, AsyncDieselConnectionManager}, pooled_connection::{deadpool::Pool, AsyncDieselConnectionManager},