Drop unused patches

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
epel9
Igor Raits 4 years ago
parent 1d647fad84
commit 7808217417
No known key found for this signature in database
GPG Key ID: 115D5AB89C5C1E1E

@ -1,32 +0,0 @@
From 4f9abc6a9c2f4918a445f8217a07849eb42f4bca Mon Sep 17 00:00:00 2001
From: Igor Raits <i.gnatenko.brain@gmail.com>
Date: Sat, 22 Feb 2020 19:11:32 +0100
Subject: [PATCH] chore: Update pulldown-cmark to 0.7
Signed-off-by: Igor Raits <i.gnatenko.brain@gmail.com>
---
src/markdown_deps.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/markdown_deps.rs b/src/markdown_deps.rs
index a557c1c..01c45b3 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, 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<CodeBlock<'_>> {
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(CodeBlockKind::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);
--
2.25.0

@ -1,34 +0,0 @@
From 33dc77fda8c5d993abee4e6c31c7526408877003 Mon Sep 17 00:00:00 2001
From: Martin Geisler <martin@geisler.net>
Date: Wed, 11 Sep 2019 11:17:36 +0100
Subject: [PATCH] markdown_deps: handle test output from toml 0.5.3
The latest minor version of the toml crate seems to give more detailed
error output.
---
src/markdown_deps.rs | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/markdown_deps.rs b/src/markdown_deps.rs
index 00ca12b..a557c1c 100644
--- a/src/markdown_deps.rs
+++ b/src/markdown_deps.rs
@@ -276,10 +276,11 @@ mod tests {
let block = "[dependencies]\n\
foobar = 1.5.8";
let request = extract_version_request("foobar", block);
- assert_eq!(
- request.unwrap_err(),
- "TOML parse error: expected newline, found a period at line 2"
- );
+ // toml 0.5.3 returns "found a period at line 2 column 13.
+ // Update the test when we bump the toml crate dependency.
+ assert!(request
+ .unwrap_err()
+ .contains("TOML parse error: expected newline, found a period at line 2"));
}
#[test]
--
2.24.0
Loading…
Cancel
Save