You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.0 KiB
30 lines
1.0 KiB
From fa0c0491ed29d8b8006e9ebfc0c8dae0f3be285f Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= <zebob.m@gmail.com>
|
|
Date: Thu, 1 Aug 2019 00:18:55 +0200
|
|
Subject: [PATCH] Bump pulldown-cmark to 0.5
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
|
|
---
|
|
src/skeptic/lib.rs | 2 +-
|
|
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
|
|
diff --git a/lib.rs b/lib.rs
|
|
index 08c0066..b9a4eb7 100644
|
|
--- a/lib.rs
|
|
+++ b/lib.rs
|
|
@@ -231,7 +231,7 @@ fn extract_tests_from_string(s: &str, file_stem: &str) -> (Vec<Test>, Option<Str
|
|
if buf.is_empty() {
|
|
code_block_start = line_number;
|
|
}
|
|
- buf.push(text.into_owned());
|
|
+ buf.extend(text.lines().map(|s| format!("{}\n", s)));
|
|
} else if let Buffer::Header(ref mut buf) = buffer {
|
|
buf.push_str(&*text);
|
|
}
|
|
--
|
|
2.21.0
|
|
|