rustdoc: while -> if

we will always return once we step inside the while-loop thus `if` is sufficient here
This commit is contained in:
Matthias Krüger 2023-09-27 22:07:33 +02:00
parent d4589a492f
commit 809ab64e97

View File

@ -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();