mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-02-27 02:01:38 -05:00

If our expression directly evaluates to a future, we don't need to create an async block. This requires us to have `EventLoopRun::run` consume the instance instead of just taking a mutable reference (otherwise we run into lifetime issues). However, that is better anyway because `run` is an endless loop so you never get to use the handle afterwards anyway.