Skip to content

Commit ee6ee3f

Browse files
committed
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)]`.
1 parent 16080ce commit ee6ee3f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightning/src/routing/scoring.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ pub trait LockableScore<'a> {
162162
/// use the Persister to persist it.
163163
pub trait WriteableScore<'a>: LockableScore<'a> + Writeable {}
164164

165+
#[cfg(not(c_bindings))]
165166
impl<'a, T> WriteableScore<'a> for T where T: LockableScore<'a> + Writeable {}
166167

167168
/// (C-not exported)

0 commit comments

Comments
 (0)