From 051e062c39fe9b7861dbcd4cb3fb57c44ef246d5 Mon Sep 17 00:00:00 2001 From: daimond113 <72147841+daimond113@users.noreply.github.com> Date: Tue, 15 Oct 2024 23:52:52 +0200 Subject: [PATCH] style: remove comma before paren --- registry/src/endpoints/publish_version.rs | 2 +- src/cli/version.rs | 2 +- src/lockfile.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/registry/src/endpoints/publish_version.rs b/registry/src/endpoints/publish_version.rs index df04942..d6a38ab 100644 --- a/registry/src/endpoints/publish_version.rs +++ b/registry/src/endpoints/publish_version.rs @@ -455,7 +455,7 @@ pub async fn publish_package( let (a, b, c) = join!( app_state .storage - .store_package(&manifest.name, &version_id, bytes.to_vec(),), + .store_package(&manifest.name, &version_id, bytes.to_vec()), join_all( docs_pages .into_iter() diff --git a/src/cli/version.rs b/src/cli/version.rs index ca70933..2634681 100644 --- a/src/cli/version.rs +++ b/src/cli/version.rs @@ -91,7 +91,7 @@ pub fn check_for_updates(reqwest: &reqwest::blocking::Client) -> anyhow::Result< .bold(); let column = "|".bright_magenta().bold(); - println!("\n{stars}\n{column} {message} {column}\n{stars}\n",); + println!("\n{stars}\n{column} {message} {column}\n{stars}\n"); } Ok(()) diff --git a/src/lockfile.rs b/src/lockfile.rs index e06e19e..02e1fec 100644 --- a/src/lockfile.rs +++ b/src/lockfile.rs @@ -88,7 +88,7 @@ pub(crate) fn insert_node( match (¤t_node.direct, &node.direct) { (Some(_), Some(_)) => { - log::warn!("duplicate direct dependency for {name}@{version}",); + log::warn!("duplicate direct dependency for {name}@{version}"); } (None, Some(_)) => {