Skip to content

Commit acc0c5f

Browse files
committed
Make FutureResult non-Send when no-std
1 parent d825f8c commit acc0c5f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/wallet/persisted.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ pub trait WalletPersister {
5555
fn persist(persister: &mut Self, changeset: &ChangeSet) -> Result<(), Self::Error>;
5656
}
5757

58+
#[cfg(feature = "std")]
5859
type FutureResult<'a, T, E> = Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'a>>;
60+
#[cfg(not(feature = "std"))]
61+
type FutureResult<'a, T, E> = Pin<Box<dyn Future<Output = Result<T, E>> + 'a>>;
5962

6063
/// Async trait that persists [`PersistedWallet`].
6164
///

0 commit comments

Comments
 (0)