chore: clippy (#750)

* chore: clippy

* chore: fmt
This commit is contained in:
thesimplekid
2025-05-14 15:55:37 +01:00
committed by GitHub
parent 056ddecfeb
commit e268866446
38 changed files with 65 additions and 82 deletions

View File

@@ -46,8 +46,7 @@ async fn main() -> anyhow::Result<()> {
let rustls_filter = "rustls=warn";
let env_filter = EnvFilter::new(format!(
"{},{},{},{},{}",
default_filter, sqlx_filter, hyper_filter, h2_filter, rustls_filter
"{default_filter},{sqlx_filter},{hyper_filter},{h2_filter},{rustls_filter}"
));
tracing_subscriber::fmt().with_env_filter(env_filter).init();

View File

@@ -34,7 +34,7 @@ pub struct PaymentProcessorClient {
impl PaymentProcessorClient {
/// Payment Processor
pub async fn new(addr: &str, port: u16, tls_dir: Option<PathBuf>) -> anyhow::Result<Self> {
let addr = format!("{}:{}", addr, port);
let addr = format!("{addr}:{port}");
let channel = if let Some(tls_dir) = tls_dir {
// TLS directory exists, configure TLS