mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-16 09:11:55 +00:00
revset: drop an unnecessary return
keyword
This commit is contained in:
parent
ac5d8eb784
commit
f9b3211d58
1 changed files with 9 additions and 11 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue