mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 17:47:54 +08:00
chore: address Rust 1.78 clippy lints (#4545)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -203,8 +203,8 @@ pub struct RoutableConnectorChoice {
|
||||
pub sub_label: Option<String>,
|
||||
}
|
||||
|
||||
impl ToString for RoutableConnectorChoice {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for RoutableConnectorChoice {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
#[cfg(feature = "connector_choice_mca_id")]
|
||||
let base = self.connector.to_string();
|
||||
|
||||
@ -219,7 +219,7 @@ impl ToString for RoutableConnectorChoice {
|
||||
sub_base
|
||||
};
|
||||
|
||||
base
|
||||
write!(f, "{}", base)
|
||||
}
|
||||
}
|
||||
|
||||
@ -329,7 +329,7 @@ pub enum RoutingAlgorithm {
|
||||
Priority(Vec<RoutableConnectorChoice>),
|
||||
VolumeSplit(Vec<ConnectorVolumeSplit>),
|
||||
#[schema(value_type=ProgramConnectorSelection)]
|
||||
Advanced(euclid::frontend::ast::Program<ConnectorSelection>),
|
||||
Advanced(ast::Program<ConnectorSelection>),
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
|
||||
@ -338,7 +338,7 @@ pub enum RoutingAlgorithmSerde {
|
||||
Single(Box<RoutableConnectorChoice>),
|
||||
Priority(Vec<RoutableConnectorChoice>),
|
||||
VolumeSplit(Vec<ConnectorVolumeSplit>),
|
||||
Advanced(euclid::frontend::ast::Program<ConnectorSelection>),
|
||||
Advanced(ast::Program<ConnectorSelection>),
|
||||
}
|
||||
|
||||
impl TryFrom<RoutingAlgorithmSerde> for RoutingAlgorithm {
|
||||
|
||||
Reference in New Issue
Block a user