Skip to content

Commit

Permalink
chore: run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperswitch-bot[bot] committed Dec 23, 2024
1 parent 10c5809 commit b1be688
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions crates/diesel_models/src/query/role.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
use crate::{
enums::RoleScope, errors, query::generics, role::*, schema::roles::dsl, PgPooledConn,
StorageResult,
};
use async_bb8_diesel::AsyncRunQueryDsl;
use common_enums::EntityType;
use common_utils::id_type;
Expand All @@ -12,6 +8,11 @@ use diesel::{
use error_stack::{report, ResultExt};
use strum::IntoEnumIterator;

use crate::{
enums::RoleScope, errors, query::generics, role::*, schema::roles::dsl, PgPooledConn,
StorageResult,
};

impl RoleNew {
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Role> {
generics::generic_insert(conn, self).await
Expand Down

0 comments on commit b1be688

Please sign in to comment.