提交 933eb3e3 编写于 作者: T Tshepang Lekhonkhobe

path: the if-else block looked unusual

上级 74728862
......@@ -598,8 +598,11 @@ fn prefix_verbatim(&self) -> bool {
/// how much of the prefix is left from the point of view of iteration?
#[inline]
fn prefix_remaining(&self) -> usize {
if self.front == State::Prefix { self.prefix_len() }
else { 0 }
if self.front == State::Prefix {
self.prefix_len()
} else {
0
}
}
// Given the iteration so far, how much of the pre-State::Body path is left?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册