Skip to content

Commit 7616c1d

Browse files
committed
Refactor to attempt to fix some coverage bugs
1 parent ff8171d commit 7616c1d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#![deny(clippy::pedantic)]
1616
#![allow(clippy::doc_link_with_quotes)]
1717
#![allow(clippy::too_many_lines)]
18+
#![allow(clippy::missing_panics_doc)]
1819
#![doc(
1920
html_logo_url = "https://raw.githubusercontent.com/wooorm/markdown-rs/8924580/media/logo-monochromatic.svg?sanitize=true"
2021
)]
@@ -1451,7 +1452,6 @@ impl Options {
14511452
/// assert_eq!(to_html("# Hello, world!"), "<h1>Hello, world!</h1>");
14521453
/// ```
14531454
#[must_use]
1454-
#[allow(clippy::missing_panics_doc)]
14551455
pub fn to_html(value: &str) -> String {
14561456
to_html_with_options(value, &Options::default()).unwrap()
14571457
}
@@ -1582,6 +1582,8 @@ mod tests {
15821582
fn test_constructs() {
15831583
#![allow(unused_must_use)]
15841584
Constructs::default();
1585+
Constructs::gfm();
1586+
Constructs::mdx();
15851587

15861588
let constructs = Constructs::default();
15871589
assert!(constructs.attention, "should default to `CommonMark` (1)");
@@ -1624,6 +1626,8 @@ mod tests {
16241626
fn test_parse_options() {
16251627
#![allow(unused_must_use)]
16261628
ParseOptions::default();
1629+
ParseOptions::gfm();
1630+
ParseOptions::mdx();
16271631

16281632
let options = ParseOptions::default();
16291633
assert!(
@@ -1691,6 +1695,7 @@ mod tests {
16911695
fn test_compile_options() {
16921696
#![allow(unused_must_use)]
16931697
CompileOptions::default();
1698+
CompileOptions::gfm();
16941699

16951700
let options = CompileOptions::default();
16961701
assert!(

0 commit comments

Comments
 (0)