From 3d12c9528f96f828f2ff9393faa505ecd35b7fa3 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 19 Oct 2020 10:48:28 +0530 Subject: [PATCH] Tweak lockfile output Signed-off-by: Harsh Shandilya --- src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index e7596a4..09b3e6a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,7 +5,6 @@ use walkdir::WalkDir; #[derive(Debug, Serialize, Deserialize)] struct PersistableRepo { - pub(crate) path: String, pub(crate) remote_url: String, pub(crate) head: String, } @@ -46,9 +45,8 @@ fn main() -> anyhow::Result<()> { .unwrap() .to_string(); repos.insert( - path.clone(), + path, PersistableRepo { - path, remote_url: remote.url().unwrap_or("None").to_owned(), head: head.to_owned(), },