Skip to content

Commit

Permalink
fix: some froms
Browse files Browse the repository at this point in the history
  • Loading branch information
gadomski committed Nov 1, 2024
1 parent ae3699c commit c9bd10a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ client = [
"dep:http",
"dep:reqwest",
"dep:tokio",
"stac-types/reqwest",
]
geo = ["dep:geo", "stac/geo"]

Expand Down
7 changes: 7 additions & 0 deletions crates/types/src/href.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,13 @@ impl From<reqwest::Url> for Href {
}
}

#[cfg(not(feature = "reqwest"))]
impl From<Url> for Href {
fn from(value: Url) -> Self {
Href::Url(value)
}
}

impl PartialEq<&str> for Href {
fn eq(&self, other: &&str) -> bool {
self.as_str().eq(*other)
Expand Down

0 comments on commit c9bd10a

Please sign in to comment.