changeset 49095:b97835b2e2d4

rust-nodemap: remove unnecessary explicit lifetime Differential Revision: https://phab.mercurial-scm.org/D12486
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 08 Apr 2022 21:34:18 -0700
parents a9ece9796a97
children 07ec9f4f24bf
files rust/hg-core/src/revlog/nodemap.rs
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rust/hg-core/src/revlog/nodemap.rs	Tue Apr 12 21:56:57 2022 -0700
+++ b/rust/hg-core/src/revlog/nodemap.rs	Fri Apr 08 21:34:18 2022 -0700
@@ -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,