chore: address Rust 1.73 clippy lints (#2474)

This commit is contained in:
Chethan Rao
2023-10-09 16:06:37 +05:30
committed by GitHub
parent 224b83c51d
commit e02838eb5d
10 changed files with 31 additions and 26 deletions

View File

@ -1205,10 +1205,7 @@ pub async fn payout_create_db_entries(
.set_recurring(req.recurring.unwrap_or(false))
.set_auto_fulfill(req.auto_fulfill.unwrap_or(false))
.set_return_url(req.return_url.to_owned())
.set_entity_type(
req.entity_type
.unwrap_or(api_enums::PayoutEntityType::default()),
)
.set_entity_type(req.entity_type.unwrap_or_default())
.set_metadata(req.metadata.to_owned())
.set_created_at(Some(common_utils::date_time::now()))
.set_last_modified_at(Some(common_utils::date_time::now()))