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