File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1663,21 +1663,21 @@ impl Arc<dyn Any + Send + Sync> {
1663
1663
}
1664
1664
}
1665
1665
1666
- impl < Args , F : FnOnce < Args > + ?Sized > FnOnce < Args > for Arc < F > {
1666
+ impl < Args , F : FnOnce < Args > + ?Sized + Copy > FnOnce < Args > for Arc < F > {
1667
1667
type Output = <F as FnOnce < Args > >:: Output ;
1668
1668
1669
1669
extern "rust-call" fn call_once ( self , args : Args ) -> Self :: Output {
1670
1670
<F as FnOnce < Args > >:: call_once ( * self , args)
1671
1671
}
1672
1672
}
1673
1673
1674
- impl < Args , F : FnMut < Args > + ?Sized > FnMut < Args > for Arc < F > {
1674
+ impl < Args , F : FnMut < Args > + ?Sized + Copy > FnMut < Args > for Arc < F > {
1675
1675
extern "rust-call" fn call_mut ( & mut self , args : Args ) -> Self :: Output {
1676
1676
<F as FnMut < Args > >:: call_mut ( self , args)
1677
1677
}
1678
1678
}
1679
1679
1680
- impl < Args , F : Fn < Args > + ?Sized > Fn < Args > for Arc < F > {
1680
+ impl < Args , F : Fn < Args > + ?Sized + Copy > Fn < Args > for Arc < F > {
1681
1681
extern "rust-call" fn call ( & self , args : Args ) -> Self :: Output {
1682
1682
<F as Fn < Args > >:: call ( self , args)
1683
1683
}
You can’t perform that action at this time.
0 commit comments