Patchwork D12486: rust-nodemap: remove unnecessary explicit lifetime

login
register
mail settings
Submitter phabricator
Date April 9, 2022, 5:36 a.m.
Message ID <differential-rev-PHID-DREV-k5wh3ownw3j2mvywqzmc-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/50832/
State New
Headers show

Comments

phabricator - April 9, 2022, 5:36 a.m.
martinvonz created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D12486

AFFECTED FILES
  rust/hg-core/src/revlog/nodemap.rs

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/rust/hg-core/src/revlog/nodemap.rs b/rust/hg-core/src/revlog/nodemap.rs
--- a/rust/hg-core/src/revlog/nodemap.rs
+++ b/rust/hg-core/src/revlog/nodemap.rs
@@ -403,7 +403,7 @@ 
         Err(NodeMapError::MultipleResults)
     }
 
-    fn visit<'n>(&'n self, prefix: NodePrefix) -> NodeTreeVisitor<'n> {
+    fn visit(&self, prefix: NodePrefix) -> NodeTreeVisitor {
         NodeTreeVisitor {
             nt: self,
             prefix,