diff --git a/src/wallet/persisted.rs b/src/wallet/persisted.rs index 74516e4b..211420ed 100644 --- a/src/wallet/persisted.rs +++ b/src/wallet/persisted.rs @@ -55,7 +55,10 @@ pub trait WalletPersister { fn persist(persister: &mut Self, changeset: &ChangeSet) -> Result<(), Self::Error>; } +#[cfg(feature = "std")] type FutureResult<'a, T, E> = Pin> + Send + 'a>>; +#[cfg(not(feature = "std"))] +type FutureResult<'a, T, E> = Pin> + 'a>>; /// Async trait that persists [`PersistedWallet`]. ///