From 908b501e06ee1757397e932e85370629ff99fcf6 Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Mon, 30 Mar 2020 15:49:56 +0200 Subject: [PATCH] cargo: bump all dependencies --- Cargo.toml | 6 +++--- src/markdown_deps.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 84ce9fb..c9f7d50 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,11 +21,11 @@ appveyor = { repository = "mgeisler/version-sync" } codecov = { repository = "mgeisler/version-sync" } [dependencies] -pulldown-cmark = { version = "0.4, <0.5", default-features = false } +pulldown-cmark = { version = "0.7", default-features = false } semver-parser = "0.9" syn = { version = "1.0", features = ["full"] } proc-macro2 = { version = "1.0", features = ["span-locations"] } toml = "0.5" -url = "1.0, <2.0" -itertools = "0.8" +url = "2.0" +itertools = "0.9" regex = "1.1" diff --git a/src/markdown_deps.rs b/src/markdown_deps.rs index a557c1c..554bd93 100644 --- a/src/markdown_deps.rs +++ b/src/markdown_deps.rs @@ -1,4 +1,4 @@ -use pulldown_cmark::{Event, Parser, Tag}; +use pulldown_cmark::{CodeBlockKind::Fenced, Event, Parser, Tag}; use semver_parser::range::parse as parse_request; use semver_parser::range::VersionReq; use semver_parser::version::parse as parse_version; @@ -63,7 +63,7 @@ fn find_toml_blocks(text: &str) -> Vec> { let mut code_blocks = Vec::new(); for (event, range) in parser.into_offset_iter() { match event { - Event::Start(Tag::CodeBlock(ref lang)) if is_toml_block(lang) => { + Event::Start(Tag::CodeBlock(Fenced(ref lang))) if is_toml_block(lang) => { let line_count = text[..range.start].lines().count(); let code_block = &text[range]; let start = 1 + code_block.find('\n').unwrap_or(0);