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, Nov 9, 11:22 PM
Unknown Object (File)
Thu, Nov 7, 7:16 PM
Unknown Object (File)
Mon, Nov 4, 6:04 PM
Unknown Object (File)
Sun, Nov 3, 10:37 PM
Unknown Object (File)
Sun, Nov 3, 10:13 PM
Unknown Object (File)
Sat, Nov 2, 2:55 AM
Unknown Object (File)
Fri, Nov 1, 1:38 PM
Unknown Object (File)
Oct 24 2024, 2:12 AM
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
No Lint Coverage
Unit
No Test Coverage