Skip to content

Commit cc16223

Browse files
authored
Update documentation attributes for management and kafka modules (#71)
1 parent 28a4f7b commit cc16223

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,12 @@
1616
#![warn(rust_2018_idioms, missing_docs)]
1717
#![warn(clippy::dbg_macro, clippy::print_stdout)]
1818
#![doc = include_str!("../README.md")]
19-
#![cfg_attr(docsrs, feature(doc_cfg))]
19+
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
2020

2121
pub mod common;
2222
pub(crate) mod error;
2323
pub mod logging;
2424
#[cfg(feature = "management")]
25-
#[cfg_attr(docsrs, doc(cfg(feature = "management")))]
2625
pub mod management;
2726
pub mod metrics;
2827
pub mod proto;

src/reporter/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
1919
pub mod grpc;
2020
#[cfg(feature = "kafka-reporter")]
21-
#[cfg_attr(docsrs, doc(cfg(feature = "kafka-reporter")))]
2221
pub mod kafka;
2322
pub mod print;
2423

@@ -42,11 +41,9 @@ pub enum CollectItem {
4241
Meter(Box<MeterData>),
4342
/// Instance properties object.
4443
#[cfg(feature = "management")]
45-
#[cfg_attr(docsrs, doc(cfg(feature = "management")))]
4644
Instance(Box<InstanceProperties>),
4745
/// Keep alive object.
4846
#[cfg(feature = "management")]
49-
#[cfg_attr(docsrs, doc(cfg(feature = "management")))]
5047
Ping(Box<InstancePingPkg>),
5148
}
5249

0 commit comments

Comments
 (0)