Skip to content

Commit

Permalink
chore: cargo clippy_v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Narayanbhat166 committed Dec 19, 2024
1 parent 31360f9 commit fc2453c
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions crates/common_types/src/payment_methods.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
//! Common types to be used in payment methods
use diesel::{
backend::Backend,
deserialize,
deserialize::FromSql,
serialize::{Output, ToSql},
sql_types::Jsonb,
AsExpression, FromSqlRow, Queryable,
backend::Backend, deserialize, deserialize::FromSql, sql_types::Jsonb, AsExpression, Queryable,
};
use serde::{Deserialize, Serialize};
use utoipa::ToSchema;

#[cfg(feature = "v2")]
/// Details of all the payment methods enabled for the connector for the given merchant account
#[derive(Debug, Clone, Serialize, Deserialize, ToSchema, AsExpression)]
#[serde(deny_unknown_fields)]
Expand Down Expand Up @@ -117,7 +111,6 @@ pub enum AcceptedCurrencies {
AllAccepted,
}

#[cfg(feature = "v2")]
impl<DB> Queryable<Jsonb, DB> for PaymentMethodsEnabled
where
DB: Backend,
Expand All @@ -130,5 +123,4 @@ where
}
}

#[cfg(feature = "v2")]
common_utils::impl_to_sql_from_sql_json!(PaymentMethodsEnabled);

0 comments on commit fc2453c

Please sign in to comment.