remove unnecessary restriction on join
This commit is contained in:
parent
feb5e5daec
commit
907d6530f6
@ -191,7 +191,6 @@ pub trait Monad: Applicative {
|
|||||||
/// Equivalent of Haskell's `join`.
|
/// Equivalent of Haskell's `join`.
|
||||||
fn join<'a, A: 'a>(ffa: Self::F<'a, Self::F<'a, A>>) -> Self::F<'a, A>
|
fn join<'a, A: 'a>(ffa: Self::F<'a, Self::F<'a, A>>) -> Self::F<'a, A>
|
||||||
where
|
where
|
||||||
Self::F<'a, A>: 'a,
|
|
||||||
Self: 'a,
|
Self: 'a,
|
||||||
{
|
{
|
||||||
Self::bind(ffa, |fa| fa)
|
Self::bind(ffa, |fa| fa)
|
||||||
|
Loading…
Reference in New Issue
Block a user