Skip to content

Commit d102c36

Browse files
authored
Use doc_auto_cfg instead of doc_cfg (#392)
1 parent 2e4bb4d commit d102c36

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

src/custom.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ use core::{mem::MaybeUninit, num::NonZeroU32};
6565
/// [top-level documentation](index.html#custom-implementations) this
6666
/// registration only has an effect on unsupported targets.
6767
#[macro_export]
68-
#[cfg_attr(docsrs, doc(cfg(feature = "custom")))]
6968
macro_rules! register_custom_getrandom {
7069
($path:path) => {
7170
// TODO(MSRV 1.37): change to unnamed block

src/error_impls.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![cfg_attr(docsrs, doc(cfg(feature = "std")))]
21
extern crate std;
32

43
use crate::Error;

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
)]
191191
#![no_std]
192192
#![warn(rust_2018_idioms, unused_lifetimes, missing_docs)]
193-
#![cfg_attr(docsrs, feature(doc_cfg))]
193+
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
194194

195195
#[macro_use]
196196
extern crate cfg_if;

0 commit comments

Comments
 (0)