node: Use Url type

Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
Alexis Sellier
2022-09-13 10:16:05 +02:00
parent f18afb793c
commit 45d6de80e8
5 changed files with 39 additions and 22 deletions
+3 -1
View File
@@ -1,3 +1,5 @@
use git_url::Url;
use crate::identity::ProjId;
use crate::storage::{
Error, Inventory, ReadStorage, Remotes, Unverified, WriteRepository, WriteStorage,
@@ -50,7 +52,7 @@ impl WriteStorage for MockStorage {
pub struct MockRepository {}
impl WriteRepository for MockRepository {
fn fetch(&mut self, _url: &str) -> Result<(), git2::Error> {
fn fetch(&mut self, _url: &Url) -> Result<(), git2::Error> {
todo!()
}