fix: add cfg to IntoFuture preventing Send (#2086)
This commit is contained in:
parent
9ebc5b378c
commit
60e1779626
|
@ -228,6 +228,11 @@ where
|
||||||
D: Detokenize + Send + Sync,
|
D: Detokenize + Send + Sync,
|
||||||
{
|
{
|
||||||
type Output = Result<D, ContractError<M>>;
|
type Output = Result<D, ContractError<M>>;
|
||||||
|
|
||||||
|
#[cfg(target_arch = "wasm32")]
|
||||||
|
type IntoFuture = Pin<Box<dyn Future<Output = Self::Output>>>;
|
||||||
|
|
||||||
|
#[cfg(not(target_arch = "wasm32"))]
|
||||||
type IntoFuture = Pin<Box<dyn Future<Output = Self::Output> + Send>>;
|
type IntoFuture = Pin<Box<dyn Future<Output = Self::Output> + Send>>;
|
||||||
|
|
||||||
fn into_future(self) -> Self::IntoFuture {
|
fn into_future(self) -> Self::IntoFuture {
|
||||||
|
|
Loading…
Reference in New Issue