Skip to content

Commit

Permalink
Replace doc-comment dependency with equivalent inline code
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeisler committed Feb 17, 2022
1 parent 82b4eae commit 63a4769
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ criterion = "0.3.5"
lipsum = "0.8.0"
unic-emoji-char = "0.9.0"
version-sync = "0.9.4"
doc-comment = "0.3.3"

[target.'cfg(unix)'.dev-dependencies]
termion = "1.5.6"
6 changes: 4 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,10 @@
#![deny(missing_debug_implementations)]
#![allow(clippy::redundant_field_names)]

#[cfg(all(doctest, feature = "hyphenation"))]
doc_comment::doctest!("../README.md", readme_doctest);
// Make `cargo test` execute the README doctests.
#[cfg(doctest)]
#[doc = include_str!("../README.md")]
mod readme_doctest {}

use std::borrow::Cow;

Expand Down

0 comments on commit 63a4769

Please sign in to comment.