Caching version IDs from the server
This commit is contained in:
parent
0158cfb2d4
commit
0b65dff46d
2 changed files with 25 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue