Skip to content

Commit

Permalink
chore: drop unused but required URL field
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Apr 11, 2024
1 parent 6552450 commit 38e7605
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion sbom/src/model/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ impl From<Url> for Key {

#[derive(Clone, Debug, PartialEq, Eq, serde::Deserialize, serde::Serialize)]
pub struct SourceMetadata {
pub url: Url,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub keys: Vec<Key>,
}
Expand Down
1 change: 0 additions & 1 deletion sbom/src/source/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ impl Source for HttpSource {

async fn load_metadata(&self) -> Result<SourceMetadata, Self::Error> {
Ok(SourceMetadata {
url: self.url.clone(),
keys: self.options.keys.clone(),
})
}
Expand Down

0 comments on commit 38e7605

Please sign in to comment.