Do not use blanket impls when building for `c_bindings`
authorMatt Corallo <git@bluematt.me>
Sat, 10 Sep 2022 20:31:42 +0000 (20:31 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 12 Sep 2022 16:26:58 +0000 (16:26 +0000)
commit0f3536f87a73b378c3df7867f45d23a4559c3f8d
tree6c9eb30abca208bc1f15b67c4b689a8eed134ae3
parent8b3516208a6465ae8a5f1a987a5d1fd2585527a7
Do not use blanket impls when building for `c_bindings`

The C bindings generator isn't capable of figuring out if a blanket
impl applies in a given context, and instead opts to always write
out any relevant impl's for a trait. Thus, blanket impls should be
disabled when building with `#[cfg(c_bindings)]`.
lightning/src/routing/scoring.rs