tests: replace "cfg(test)" with "cfg(doctest)" for readme testing

PR #135
This commit is contained in:
Guillaume Gomez 2020-05-07 14:06:55 +02:00 committed by GitHub
parent bab4066b21
commit 0b3ff12ff5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,7 +106,7 @@ for entry in walker.filter_entry(|e| !is_hidden(e)) {
#![deny(missing_docs)]
#![allow(unknown_lints)]
#[cfg(test)]
#[cfg(doctest)]
doc_comment::doctest!("../README.md");
use std::cmp::{min, Ordering};