cargo fmt
This commit is contained in:
parent
ff9e351ef1
commit
162f6f4331
@ -92,11 +92,7 @@ where
|
||||
self.into_model::<E::Model>().all(db).await
|
||||
}
|
||||
|
||||
pub fn paginate(
|
||||
self,
|
||||
db: &Database,
|
||||
page_size: usize,
|
||||
) -> Paginator<'_, SelectModel<E::Model>> {
|
||||
pub fn paginate(self, db: &Database, page_size: usize) -> Paginator<'_, SelectModel<E::Model>> {
|
||||
self.into_model::<E::Model>().paginate(db, page_size)
|
||||
}
|
||||
}
|
||||
|
@ -34,9 +34,7 @@ impl Connector for SqlxMySqlConnector {
|
||||
|
||||
impl SqlxMySqlConnector {
|
||||
pub fn from_sqlx_mysql_pool(pool: MySqlPool) -> DatabaseConnection {
|
||||
DatabaseConnection::SqlxMySqlPoolConnection(
|
||||
SqlxMySqlPoolConnection { pool },
|
||||
)
|
||||
DatabaseConnection::SqlxMySqlPoolConnection(SqlxMySqlPoolConnection { pool })
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user