From a407c3a4f822889a5df73396d3c7a0257cfe164b Mon Sep 17 00:00:00 2001 From: Slack Coder Date: Tue, 10 Jan 2023 10:30:52 -0500 Subject: [PATCH] cli: simplify inspect Remove redundant 'collect()' call. Signed-off-by: Slack Coder --- radicle-cli/src/commands/inspect.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicle-cli/src/commands/inspect.rs b/radicle-cli/src/commands/inspect.rs index ed7af3a0..23506b29 100644 --- a/radicle-cli/src/commands/inspect.rs +++ b/radicle-cli/src/commands/inspect.rs @@ -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::::head(signer.public_key(), &repo)?; - let history = repo.revwalk(head)?.collect::>().into_iter(); + let history = repo.revwalk(head)?; for oid in history { let oid = oid?.into();