Skip to content

Commit

Permalink
test: disable doc_auto_cfg for doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
pv42 committed Aug 26, 2024
1 parent 48386be commit acc69e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mavlink-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
//! feature without also using the `uavionix` and `icarous` features.
//!
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(any(docsrs, doc), feature(doc_auto_cfg))]
#![cfg_attr(all(any(docsrs, doc), not(doctest)), feature(doc_auto_cfg))]
#![deny(clippy::all)]
#![warn(clippy::use_self)]

Expand Down
2 changes: 1 addition & 1 deletion mavlink/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(any(docsrs, doc), feature(doc_auto_cfg))]
#![cfg_attr(all(any(docsrs, doc), not(doctest)), feature(doc_auto_cfg))]
// include generate definitions
include!(concat!(env!("OUT_DIR"), "/mod.rs"));

Expand Down

0 comments on commit acc69e7

Please sign in to comment.