remove FnOnce from copy_func
This commit is contained in:
parent
85df7b2092
commit
5297261091
@ -110,7 +110,7 @@ impl<T: Applicative> CopyApplicative for T {
|
||||
}
|
||||
|
||||
pub trait CopyMonad: CopyApplicative {
|
||||
fn copy_bind<A: Copy, B: Copy, F: FnOnce(A) -> Self::CF<B>>(
|
||||
fn copy_bind<A: Copy, B: Copy, F: Copy + Fn(A) -> Self::CF<B>>(
|
||||
fa: Self::CF<A>,
|
||||
f: F,
|
||||
) -> Self::CF<B>;
|
||||
@ -125,7 +125,7 @@ pub trait CopyMonad: CopyApplicative {
|
||||
}
|
||||
|
||||
impl<T: Monad> CopyMonad for T {
|
||||
fn copy_bind<A: Copy, B: Copy, F: FnOnce(A) -> Self::CF<B>>(
|
||||
fn copy_bind<A: Copy, B: Copy, F: Copy + Fn(A) -> Self::CF<B>>(
|
||||
fa: Self::CF<A>,
|
||||
f: F,
|
||||
) -> Self::CF<B> {
|
||||
|
Loading…
Reference in New Issue
Block a user