aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-14 12:58:20 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-14 12:58:20 +0200
commit7616c1d843d812b1a66757867f4ad561d349e2e3 (patch)
tree66dbd6e09cd1f5bd0db9d92ce8f5ba919e633cf3
parentff8171de0d27500f282edfd8865b1a04a4c79333 (diff)
downloadmarkdown-rs-7616c1d843d812b1a66757867f4ad561d349e2e3.tar.gz
markdown-rs-7616c1d843d812b1a66757867f4ad561d349e2e3.tar.bz2
markdown-rs-7616c1d843d812b1a66757867f4ad561d349e2e3.zip
Refactor to attempt to fix some coverage bugs
Diffstat (limited to '')
-rw-r--r--src/lib.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index e9b5189..f874c02 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -15,6 +15,7 @@
#![deny(clippy::pedantic)]
#![allow(clippy::doc_link_with_quotes)]
#![allow(clippy::too_many_lines)]
+#![allow(clippy::missing_panics_doc)]
#![doc(
html_logo_url = "https://raw.githubusercontent.com/wooorm/markdown-rs/8924580/media/logo-monochromatic.svg?sanitize=true"
)]
@@ -1451,7 +1452,6 @@ impl Options {
/// assert_eq!(to_html("# Hello, world!"), "<h1>Hello, world!</h1>");
/// ```
#[must_use]
-#[allow(clippy::missing_panics_doc)]
pub fn to_html(value: &str) -> String {
to_html_with_options(value, &Options::default()).unwrap()
}
@@ -1582,6 +1582,8 @@ mod tests {
fn test_constructs() {
#![allow(unused_must_use)]
Constructs::default();
+ Constructs::gfm();
+ Constructs::mdx();
let constructs = Constructs::default();
assert!(constructs.attention, "should default to `CommonMark` (1)");
@@ -1624,6 +1626,8 @@ mod tests {
fn test_parse_options() {
#![allow(unused_must_use)]
ParseOptions::default();
+ ParseOptions::gfm();
+ ParseOptions::mdx();
let options = ParseOptions::default();
assert!(
@@ -1691,6 +1695,7 @@ mod tests {
fn test_compile_options() {
#![allow(unused_must_use)]
CompileOptions::default();
+ CompileOptions::gfm();
let options = CompileOptions::default();
assert!(