revset: elide some lifetimes (reported by IntelliJ)

This commit is contained in:
Martin von Zweigbergk 2023-04-09 16:21:45 -07:00 committed by Martin von Zweigbergk
parent 9c91f8190d
commit 9cf0440aef

View file

@ -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))| {