about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2021-12-28 16:19:23 +0100
committerGuillaume Gomez <guillaume.gomez@huawei.com>2021-12-28 16:19:23 +0100
commitdfd32544faaba6a54238533b32ecf5cb7145cb35 (patch)
tree7fd30fc298a1e8a7ea45ef8cea6609c8b118cd90
parent879eccead7d022b538895a9b93a1237ddbefccbd (diff)
downloadrust-dfd32544faaba6a54238533b32ecf5cb7145cb35.tar.gz
rust-dfd32544faaba6a54238533b32ecf5cb7145cb35.zip
Update pulldown-cmark version in clippy
-rw-r--r--clippy_lints/Cargo.toml2
-rw-r--r--clippy_lints/src/doc.rs8
2 files changed, 5 insertions, 5 deletions
diff --git a/clippy_lints/Cargo.toml b/clippy_lints/Cargo.toml
index 0661c280386..7d2a3e4f639 100644
--- a/clippy_lints/Cargo.toml
+++ b/clippy_lints/Cargo.toml
@@ -13,7 +13,7 @@ cargo_metadata = "0.14"
 clippy_utils = { path = "../clippy_utils" }
 if_chain = "1.0"
 itertools = "0.10"
-pulldown-cmark = { version = "0.8", default-features = false }
+pulldown-cmark = { version = "0.9", default-features = false }
 quine-mc_cluskey = "0.2"
 regex-syntax = "0.6"
 serde = { version = "1.0", features = ["derive"] }
diff --git a/clippy_lints/src/doc.rs b/clippy_lints/src/doc.rs
index 3650e4f91a0..7c271773357 100644
--- a/clippy_lints/src/doc.rs
+++ b/clippy_lints/src/doc.rs
@@ -542,16 +542,16 @@ fn check_doc<'a, Events: Iterator<Item = (pulldown_cmark::Event<'a>, Range<usize
             },
             Start(Link(_, url, _)) => in_link = Some(url),
             End(Link(..)) => in_link = None,
-            Start(Heading(_) | Paragraph | Item) => {
-                if let Start(Heading(_)) = event {
+            Start(Heading(_, _, _) | Paragraph | Item) => {
+                if let Start(Heading(_, _, _)) = event {
                     in_heading = true;
                 }
                 ticks_unbalanced = false;
                 let (_, span) = get_current_span(spans, range.start);
                 paragraph_span = first_line_of_span(cx, span);
             },
-            End(Heading(_) | Paragraph | Item) => {
-                if let End(Heading(_)) = event {
+            End(Heading(_, _, _) | Paragraph | Item) => {
+                if let End(Heading(_, _, _)) = event {
                     in_heading = false;
                 }
                 if ticks_unbalanced {