Caching version IDs from the server

This commit is contained in:
daladim 2021-03-30 00:07:31 +02:00
parent 0158cfb2d4
commit 0b65dff46d
2 changed files with 25 additions and 2 deletions

View file

@ -94,6 +94,10 @@ impl ItemId{
let u = s.parse().unwrap();
Self { content:u }
}
pub fn as_url(&self) -> &Url {
&self.content
}
}
impl From<Url> for ItemId {
fn from(url: Url) -> Self {