cli: simplify inspect

Remove redundant 'collect()' call.

Signed-off-by: Slack Coder <slackcoder@server.ky>
This commit is contained in:
Slack Coder 2023-01-10 10:30:52 -05:00 committed by Alexis Sellier
parent 08334f790b
commit a407c3a4f8
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
} else if options.history {
let repo = storage.repository(id)?;
let head = Doc::<Untrusted>::head(signer.public_key(), &repo)?;
let history = repo.revwalk(head)?.collect::<Vec<_>>().into_iter();
let history = repo.revwalk(head)?;
for oid in history {
let oid = oid?.into();