[Updated] D12486: rust-nodemap: remove unnecessary explicit lifetime

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Tue Apr 19 21:42:50 UTC 2022


Closed by commit rHGb97835b2e2d4: rust-nodemap: remove unnecessary explicit lifetime (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D12486?vs=32991&id=33247

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D12486/new/

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

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

CHANGE DETAILS

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,



To: martinvonz, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220419/6fddd8cb/attachment-0002.html>


More information about the Mercurial-patches mailing list