mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 11:48:30 +00:00
Auto merge of #116208 - matthiaskrgr:the_loop_that_wasnt, r=GuillaumeGomez
rustdoc: while -> if we will always return once we step inside the while-loop thus `if` is sufficient here
This commit is contained in:
commit
2ba4eb2d49
@ -1083,7 +1083,7 @@ impl<'a, 'tcx> TagIterator<'a, 'tcx> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn parse_in_attribute_block(&mut self) -> Option<LangStringToken<'a>> {
|
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 == '}' {
|
if c == '}' {
|
||||||
self.is_in_attribute_block = false;
|
self.is_in_attribute_block = false;
|
||||||
return self.next();
|
return self.next();
|
||||||
|
Loading…
Reference in New Issue
Block a user