Skip to content

Commit

Permalink
Fix clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Sep 11, 2024
1 parent edcb220 commit 59fb87c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion martin/src/pg/tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ pub fn parse_conn_str(conn_str: &str) -> PgResult<(Config, SslModeOverride)> {
}
let crate_ver = env!("CARGO_PKG_VERSION");
if pg_cfg.get_application_name().is_none() {
pg_cfg.application_name(&format!("Martin v{crate_ver} - pid={}", std::process::id()));
let pid = std::process::id();
pg_cfg.application_name(format!("Martin v{crate_ver} - pid={pid}"));
}
Ok((pg_cfg, mode))
}
Expand Down

0 comments on commit 59fb87c

Please sign in to comment.