Page MenuHomePhabricator

[comm-lib] Use futures_util::Ready to simplify code
ClosedPublic

Authored by bartek on Jun 13 2024, 12:53 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 21, 2:55 PM
Unknown Object (File)
Sat, Dec 21, 2:55 PM
Unknown Object (File)
Sat, Dec 21, 2:55 PM
Unknown Object (File)
Sat, Dec 21, 2:54 PM
Unknown Object (File)
Sat, Dec 14, 7:59 PM
Unknown Object (File)
Wed, Nov 27, 9:08 AM
Unknown Object (File)
Nov 24 2024, 9:52 PM
Unknown Object (File)
Nov 23 2024, 9:42 PM
Subscribers

Details

Summary

Minor change that greatly simplifies future code in the stacks.

The std::future::Ready::into_inner() is unstable so we had to use async { } block and boxed future.
Used futures_util::Ready instead, which has this method stable.

Test Plan

Cargo build

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable