]> git.bitcoin.ninja Git - rust-lightning/commit
Drop some unnecessary lifetime specifiers in return type definitions
authorMatt Corallo <git@bluematt.me>
Sun, 31 May 2020 03:18:35 +0000 (23:18 -0400)
committerMatt Corallo <git@bluematt.me>
Mon, 22 Jun 2020 17:42:28 +0000 (13:42 -0400)
commitaa14fe58301c3c3d80b00aa74e61197db1e577e8
tree026ee408e751764539123f480cd868c078cf1378
parent775a5adfb917f33b6d781f16660cd14134bb0250
Drop some unnecessary lifetime specifiers in return type definitions

In general, we don't need an explicit lifetime when doing something
like:
fn get_thing(&self) -> &Thing { &self.thing }.

This also makes it easier to reason about what's going on in the
bindings generation.
lightning/src/chain/chaininterface.rs
lightning/src/chain/keysinterface.rs
lightning/src/util/enforcing_trait_impls.rs