style: simplify string formatting for readability (#231763)

* style: simplify string formatting for readability

* fix: formatting in `.rs` files in `src/`
This commit is contained in:
Hamir Mahal
2024-10-22 09:30:46 -07:00
committed by GitHub
parent aabb725c04
commit a744313eb7
29 changed files with 108 additions and 128 deletions

View File

@@ -566,7 +566,7 @@ async fn process_socket(
{
debug!(log, "closing socket reader: {}", e);
socket_tx
.send(SocketSignal::CloseWith(CloseReason(format!("{}", e))))
.send(SocketSignal::CloseWith(CloseReason(format!("{e}"))))
.await
.ok();
}
@@ -1192,7 +1192,7 @@ async fn handle_acquire_cli(
let release = match params.commit_id {
Some(commit) => Release {
name: format!("{} CLI", PRODUCT_NAME_LONG),
name: format!("{PRODUCT_NAME_LONG} CLI"),
commit,
platform: params.platform,
quality: params.quality,