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)] #[derive(Debug, Serialize, Deserialize)]
struct PersistableRepo { struct PersistableRepo {
pub(crate) path: String,
pub(crate) remote_url: String, pub(crate) remote_url: String,
pub(crate) head: String, pub(crate) head: String,
} }
@ -46,9 +45,8 @@ fn main() -> anyhow::Result<()> {
.unwrap() .unwrap()
.to_string(); .to_string();
repos.insert( repos.insert(
path.clone(), path,
PersistableRepo { PersistableRepo {
path,
remote_url: remote.url().unwrap_or("None").to_owned(), remote_url: remote.url().unwrap_or("None").to_owned(),
head: head.to_owned(), head: head.to_owned(),
}, },