]> git.bitcoin.ninja Git - rust-lightning/commit
Drop a useless import and use `Self` in return values in Features
authorMatt Corallo <git@bluematt.me>
Thu, 11 Feb 2021 15:23:41 +0000 (10:23 -0500)
committerMatt Corallo <git@bluematt.me>
Thu, 11 Feb 2021 18:24:50 +0000 (13:24 -0500)
commit3f3fa00734d90f53837b73732c97a0bfcaa5109e
tree672b329f33e372e30aa4d44c0346872484b0019a
parent2b101baf6ca4204a989b55fc4fa4aee55c82bdff
Drop a useless import and use `Self` in return values in Features

`Result` is in the standard prelude, so no need to ever use it.

Sadly, returning a Features<T> in the `impl Futures {}` block
will confuse our new alias-impl-printing logic, as we end up
running through the normal impl-block-printing logic as if we had
an explicit `impl ConcreteFeatures` block.
lightning/src/ln/features.rs