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
@@ -47,6 +47,7 @@ use super::{
/// // ...
/// }
/// ```
#[cfg_attr(docsrs, doc(cfg(feature = "gradual")))]
#[derive(Clone, Debug)]
pub struct CatchGradualDifficulty<'map> {
pub(crate) idx: usize,
+1
View File
@@ -92,6 +92,7 @@ use super::{CatchGradualDifficulty, CatchPerformanceAttributes, CatchScoreState}
/// // 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 CatchGradualPerformance<'map> {
difficulty: CatchGradualDifficulty<'map>,