From 34c12508f5756edba6b4f411a8bfaf97cad99c41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 1 Sep 2019 22:21:34 +0100 Subject: [PATCH] wip on new tests --- src/index.rs | 1 + src/repository.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.rs b/src/index.rs index 212eaae..4bfed43 100644 --- a/src/index.rs +++ b/src/index.rs @@ -47,6 +47,7 @@ impl Index { } pub fn remember(&mut self, item: RepositoryItem) { + println!("remembering {:#?}", item); self.items.push(item.into()); } diff --git a/src/repository.rs b/src/repository.rs index 8493b2e..0fcbb71 100644 --- a/src/repository.rs +++ b/src/repository.rs @@ -80,7 +80,7 @@ impl<'a> Repository<'a> { source_path, destination_path, destination_path.strip_prefix(self.path)?, - Box::from(version), + version, )); } Ok(())