Skip to content

Commit 809ab64

Browse files
committed
rustdoc: while -> if
we will always return once we step inside the while-loop thus `if` is sufficient here
1 parent d4589a4 commit 809ab64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/markdown.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ impl<'a, 'tcx> TagIterator<'a, 'tcx> {
10831083
}
10841084

10851085
fn parse_in_attribute_block(&mut self) -> Option<LangStringToken<'a>> {
1086-
while let Some((pos, c)) = self.inner.next() {
1086+
if let Some((pos, c)) = self.inner.next() {
10871087
if c == '}' {
10881088
self.is_in_attribute_block = false;
10891089
return self.next();

0 commit comments

Comments
 (0)