Skip to content
This repository has been archived by the owner on Jan 11, 2025. It is now read-only.

Commit

Permalink
Merge pull request #2 from Kiwifuit/mar/repository
Browse files Browse the repository at this point in the history
fix: `base_url` formatting error
  • Loading branch information
Kiwifuit authored Aug 19, 2024
2 parents 36e7644 + c88734b commit 8872240
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions mar/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,10 @@ impl<T: ToString> MavenArtifactBuilder<T> {
}

pub fn build(self) -> Result<MavenArtifact, MavenArtifactBuildError> {
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)
Expand Down

0 comments on commit 8872240

Please sign in to comment.