Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Trying to use async
save_file
and co. in a context that requires my futures to beSend
andSync
and getting errors. Turns out theFuture
returned bysave_file
is alreadySend
, but the signature ofsave_file
only guaranteesimpl Future<...>
. We can get theSend
guarantee for free by specifying a specific type for the future returned bysave_file
(and I did the others for consistency).The change I'm less certain on is adding
Sync
toDialogFutureType
's inner boxed type. It all builds, so I don't think there's a problem with that (haven't tested on wasm) and I don't even think anything I did is a breaking change. If you have a suite of tests to put this through, though, that probably wouldn't be a bad idea.PS Just looked and I don't think anything I did should affect wasm since
DialogFutureType
isn'tSend
on wasm, and I didn't add any trait bounds for that config. So unless I'm way more tired than I'm realizing, this PR shouldn't break anything! 🎉