Tweak lockfile output

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-10-19 10:48:28 +05:30
parent 444dea3e03
commit 3d12c9528f
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -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(),
},