]> 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, 18 Feb 2021 17:28:25 +0000 (12:28 -0500)
commit61f5e79062d3ff3a1c12923530183910a30702d9
tree273d43461607def685cf8c106203ddf3b625544c
parent3bbecbef21ec3bf3f4f665128cbf254d85374e6e
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