]> git.bitcoin.ninja Git - rust-lightning/commit
Three small fixes to work around our bindings generator limitations
authorMatt Corallo <git@bluematt.me>
Tue, 12 May 2020 17:47:54 +0000 (13:47 -0400)
committerMatt Corallo <git@bluematt.me>
Fri, 22 May 2020 18:28:56 +0000 (14:28 -0400)
commit0d77e7ce86aa22d147be1925c2e62742ca967f80
tree021f8ff9d7729393202ec971b527843820e8c450
parent9d4b6e762cd85b5dbbd23c5d04947fbda42269f9
Three small fixes to work around our bindings generator limitations

 * Return Self instead of the fully-written types for constructors,
 * Place definitions before use (in this case for KeysInterface),
 * Don't import foo::bar::self, but import foo::bar

 + a spelling fix in the KeysInterface docs for get_onion_rand.
lightning/src/chain/keysinterface.rs
lightning/src/ln/chan_utils.rs