Skip to content

Commit

Permalink
Use newer rust feature to test the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ohadravid committed Nov 1, 2021
1 parent a059502 commit c08ebd1
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,6 @@ pub use variant::Variant;
// Cannot use `cfg(test)` here since `rustdoc` won't look at it.
#[cfg(debug_assertions)]
mod test_readme {
macro_rules! calculated_doc {
($doc:expr, $id:ident) => {
#[doc = $doc]
enum $id {}
};
}

calculated_doc!(include_str!("../README.md"), _DoctestReadme);
#[doc = include_str!("../README.md")]
enum _DoctestReadme {}
}

0 comments on commit c08ebd1

Please sign in to comment.