From 9cf0440aef0a4f341cc572a15dccbe15f13e776d Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Sun, 9 Apr 2023 16:21:45 -0700 Subject: [PATCH] revset: elide some lifetimes (reported by IntelliJ) --- lib/src/revset.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/src/revset.rs b/lib/src/revset.rs index fe92cddd3..c22b788f7 100644 --- a/lib/src/revset.rs +++ b/lib/src/revset.rs @@ -545,16 +545,13 @@ impl RevsetAliasesMap { Ok(()) } - fn get_symbol<'a>(&'a self, name: &str) -> Option<(RevsetAliasId<'a>, &'a str)> { + fn get_symbol(&self, name: &str) -> Option<(RevsetAliasId, &str)> { self.symbol_aliases .get_key_value(name) .map(|(name, defn)| (RevsetAliasId::Symbol(name), defn.as_ref())) } - fn get_function<'a>( - &'a self, - name: &str, - ) -> Option<(RevsetAliasId<'a>, &'a [String], &'a str)> { + fn get_function(&self, name: &str) -> Option<(RevsetAliasId, &[String], &str)> { self.function_aliases .get_key_value(name) .map(|(name, (params, defn))| {