doc: enable doc_cfg

This commit is contained in:
MaxOhn
2023-11-09 01:08:14 +01:00
parent 8a643fb6f0
commit e7faacaad1
12 changed files with 23 additions and 5 deletions
+1
View File
@@ -46,6 +46,7 @@ use super::{
/// // ...
/// }
/// ```
#[cfg_attr(docsrs, doc(cfg(feature = "gradual")))]
#[derive(Clone, Debug)]
pub struct ManiaGradualDifficulty<'map> {
pub(crate) idx: usize,
+1
View File
@@ -75,6 +75,7 @@ use super::{ManiaGradualDifficulty, ManiaPerformanceAttributes, ManiaScoreState}
/// // attempting to process further objects will return `None`.
/// assert!(gradual_perf.next(state).is_none());
/// ```
#[cfg_attr(docsrs, doc(cfg(feature = "gradual")))]
#[derive(Clone, Debug)]
pub struct ManiaGradualPerformance<'map> {
difficulty: ManiaGradualDifficulty<'map>,