Skip to content

Commit bec09cc

Browse files
pv42patrickelectric
authored andcommitted
test: disable doc_auto_cfg for doctest
1 parent c8b10f0 commit bec09cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mavlink-core/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
//! feature without also using the `uavionix` and `icarous` features.
2020
//!
2121
#![cfg_attr(not(feature = "std"), no_std)]
22-
#![cfg_attr(any(docsrs, doc), feature(doc_auto_cfg))]
22+
#![cfg_attr(all(any(docsrs, doc), not(doctest)), feature(doc_auto_cfg))]
2323
#![deny(clippy::all)]
2424
#![warn(clippy::use_self)]
2525

mavlink/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![cfg_attr(not(feature = "std"), no_std)]
2-
#![cfg_attr(any(docsrs, doc), feature(doc_auto_cfg))]
2+
#![cfg_attr(all(any(docsrs, doc), not(doctest)), feature(doc_auto_cfg))]
33
// include generate definitions
44
include!(concat!(env!("OUT_DIR"), "/mod.rs"));
55

0 commit comments

Comments
 (0)