Skip to content

Commit 20ac5e7

Browse files
committed
primitives - ApiUrl - to_url convenient method
1 parent 07101f4 commit 20ac5e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

primitives/src/util/api.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ impl ApiUrl {
5656
// this join is safe, since we always prefix the Url with `/`
5757
self.0.join(stripped)
5858
}
59+
60+
pub fn to_url(&self) -> Url {
61+
self.0.clone()
62+
}
5963
}
6064

6165
impl fmt::Debug for ApiUrl {

0 commit comments

Comments
 (0)