revset: drop an unnecessary return keyword

This commit is contained in:
Martin von Zweigbergk 2023-08-19 23:15:45 -07:00 committed by Martin von Zweigbergk
parent ac5d8eb784
commit f9b3211d58

View file

@ -894,8 +894,7 @@ fn parse_symbol_rule(
Ok(RevsetExpression::symbol(name.to_owned())) Ok(RevsetExpression::symbol(name.to_owned()))
} }
} }
Rule::literal_string => { Rule::literal_string => Ok(RevsetExpression::symbol(
return Ok(RevsetExpression::symbol(
first first
.as_str() .as_str()
.strip_prefix('"') .strip_prefix('"')
@ -903,8 +902,7 @@ fn parse_symbol_rule(
.strip_suffix('"') .strip_suffix('"')
.unwrap() .unwrap()
.to_owned(), .to_owned(),
)); )),
}
_ => { _ => {
panic!("unexpected symbol parse rule: {:?}", first.as_str()); panic!("unexpected symbol parse rule: {:?}", first.as_str());
} }