]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/html/markdown.rs
Auto merge of #67742 - mark-i-m:describe-it, r=matthewjasper
[rust.git] / src / librustdoc / html / markdown.rs
index 07c092a511c04611181071497b20170384e6bbe0..56f7b07cfc843f6d96b3c35ecd6816322bcb2afa 100644 (file)
@@ -465,7 +465,7 @@ fn next(&mut self) -> Option<Self::Item> {
                 }
                 _ => true,
             };
-            return if is_allowed_tag == false {
+            return if !is_allowed_tag {
                 if is_start {
                     Some(Event::Start(Tag::Paragraph))
                 } else {
@@ -671,7 +671,7 @@ fn parse(
                 "" => {}
                 "should_panic" => {
                     data.should_panic = true;
-                    seen_rust_tags = seen_other_tags == false;
+                    seen_rust_tags = !seen_other_tags;
                 }
                 "no_run" => {
                     data.no_run = true;