Skip to content

Commit 8af7d29

Browse files
committed
cfg_attr docsrs
1 parent cd68e8b commit 8af7d29

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

druid/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
1717
#![deny(intra_doc_link_resolution_failure, unsafe_code)]
1818
#![allow(clippy::new_ret_no_self)]
19-
#![feature(doc_cfg)]
19+
#![cfg_attr(docsrs, feature(doc_cfg))]
2020

2121
use druid_shell as shell;
2222
pub use druid_shell::{kurbo, piet};

druid/src/widget/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ pub use widget_ext::WidgetExt;
7171
mod list;
7272
pub use crate::widget::list::{List, ListIter};
7373

74-
#[cfg(any(feature = "svg", rustdoc))]
75-
#[doc(cfg(feature = "svg"))]
74+
#[cfg(feature = "svg")]
75+
#[cfg_attr(docsrs, doc(cfg(feature = "svg")))]
7676
mod svg;
77-
#[cfg(any(feature = "svg", rustdoc))]
78-
#[doc(cfg(feature = "svg"))]
77+
#[cfg(feature = "svg")]
78+
#[cfg_attr(docsrs, doc(cfg(feature = "svg")))]
7979
pub use crate::widget::svg::{Svg, SvgData};

0 commit comments

Comments
 (0)