From c88734b9922d93ba4efa65179099ea491c3c17a6 Mon Sep 17 00:00:00 2001 From: Kiwifuit Date: Sun, 18 Aug 2024 21:14:59 +0800 Subject: [PATCH] fix: `base_url` formatting error i seriously dont know why it manifested itself now out of all times --- mar/src/types.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/mar/src/types.rs b/mar/src/types.rs index f41da7b..510d523 100644 --- a/mar/src/types.rs +++ b/mar/src/types.rs @@ -111,12 +111,10 @@ impl MavenArtifactBuilder { } pub fn build(self) -> Result { - let base_url = format!( - "https://{}", - self.base_url - .ok_or(MavenArtifactBuildError::BaseURL) - .map(|base_url| base_url.to_string())? - ); + let base_url = self + .base_url + .ok_or(MavenArtifactBuildError::BaseURL) + .map(|base_url| base_url.to_string())?; let group_id = self .group_id .ok_or(MavenArtifactBuildError::GroupID)