Commit 46695e5
committed
936c724 fix(persisted): Make `FutureResult` non-`Send` when no-`std` (Fedeparma74)
Pull request description:
### Description
This PR updates the `FutureResult` type alias in the async persister implementation to support **non-`Send` futures** when the `std` feature is disabled.
Previously, the `FutureResult` type always required the `Send` bound, which prevented `no_std` environments from using non-`Send` futures. With this change, the bound is applied only when the `std` feature is enabled.
This improves compatibility for embedded or `no_std` targets while keeping full `Send` safety for standard environments.
### Notes to the reviewers
The change is minimal and fully backwards compatible.
It only affects compilation under `no_std` builds and does not modify any runtime behavior or APIs under the `std` feature.
Please confirm that this approach aligns with the intended async API design and does not conflict with downstream usage expectations.
### Changelog notice
#### Changed
* Relaxed the `FutureResult` type alias to allow non-`Send` futures in `no_std` builds.
ACKs for top commit:
ValuedMammal:
ACK 936c724
luisschwab:
ACK 936c724
Tree-SHA512: 388922a023246be786c1d475d02d800ebf69be3759492ee4f20a7be47667a013bbd883742d838bf8479447fd19a0ec9d280d39d9da6c75d15700817f4c3280fe
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
| 60 | + | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
0 commit comments