From c05878b9a608c5cb99ecdc88455f98a40576e9f3 Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Fri, 7 May 2021 22:21:00 -0700 Subject: [PATCH] maintenance: add support for latest nightly toolchain --- lib/src/revset.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/revset.rs b/lib/src/revset.rs index 448db9418..5c64106b8 100644 --- a/lib/src/revset.rs +++ b/lib/src/revset.rs @@ -827,6 +827,9 @@ pub fn evaluate_expression<'revset, 'repo: 'revset>( let walk = repo.index().walk_revs(&head_ids, &root_ids); Ok(Box::new(RevWalkRevset { walk })) } + // Clippy doesn't seem to understand that we collect the iterator in order to iterate in + // reverse + #[allow(clippy::needless_collect)] RevsetExpression::DagRange { roots, heads } => { let root_set = evaluate_expression(repo, roots.as_ref())?; let candidate_set =