rustdoc: while -> if
we will always return once we step inside the while-loop thus `if` is sufficient here
This commit is contained in:
parent
d4589a492f
commit
809ab64e97
@ -1083,7 +1083,7 @@ impl<'a, 'tcx> TagIterator<'a, 'tcx> {
|
||||
}
|
||||
|
||||
fn parse_in_attribute_block(&mut self) -> Option<LangStringToken<'a>> {
|
||||
while let Some((pos, c)) = self.inner.next() {
|
||||
if let Some((pos, c)) = self.inner.next() {
|
||||
if c == '}' {
|
||||
self.is_in_attribute_block = false;
|
||||
return self.next();
|
||||
|
Loading…
x
Reference in New Issue
Block a user