From 31aa9acc9517f5b50d886e14593631acb7479194 Mon Sep 17 00:00:00 2001 From: timofey Date: Sun, 30 Jul 2023 11:12:20 +0000 Subject: [PATCH] `controlflow`: remove `#[cfg(doc)]` --- src/func/controlflow.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/func/controlflow.rs b/src/func/controlflow.rs index bf42152..4eb47b4 100644 --- a/src/func/controlflow.rs +++ b/src/func/controlflow.rs @@ -1,8 +1,6 @@ use std::marker::PhantomData; pub use std::ops::ControlFlow; -#[cfg(doc)] -use super::Monad; use super::{weakfunctorany::WeakFunctorAny, Functor, Pure, WeakFunctor, Wrap}; pub(super) struct ControlFlowInstance(ControlFlow<(), C>); @@ -57,6 +55,8 @@ pub type IterativeWrapped<'a, F> = Wrap<'a, ControlFlow<>::B, F>, >::T>; /// Value passed to [`Monad::iterate`]. +/// +/// [`Monad::iterate`]: crate::func::Monad::iterate pub trait Iterative<'a>: 'a + Sized { /// [`ControlFlow::Break`]. type B: 'a;