rust-nodemap: remove unnecessary explicit lifetime
authorMartin von Zweigbergk <martinvonz@google.com>
Fri, 08 Apr 2022 21:34:18 -0700
changeset 49095 b97835b2e2d4
parent 49094 a9ece9796a97
child 49096 07ec9f4f24bf
rust-nodemap: remove unnecessary explicit lifetime Differential Revision: https://phab.mercurial-scm.org/D12486
rust/hg-core/src/revlog/nodemap.rs
--- 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,