X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-c-bindings;a=blobdiff_plain;f=c-bindings-gen%2Fsrc%2Ftypes.rs;fp=c-bindings-gen%2Fsrc%2Ftypes.rs;h=6d97ccc32ffb10357bf020c2eefe8c56bea01b78;hp=0ff81f8132d81f748045b080c1f7932b7cfa6992;hb=3ddf30cda74b64d1e1fe3f57e06cbb5440f630e4;hpb=12362af6afc2d1472d4241031a1c66572d3427f2 diff --git a/c-bindings-gen/src/types.rs b/c-bindings-gen/src/types.rs index 0ff81f8..6d97ccc 100644 --- a/c-bindings-gen/src/types.rs +++ b/c-bindings-gen/src/types.rs @@ -354,7 +354,6 @@ impl<'a, 'p: 'a> GenericTypes<'a, 'p> { for bound in bounds_iter { if let syn::TypeParamBound::Trait(t) = bound { // We only allow for `?Sized` here. - if let syn::TraitBoundModifier::Maybe(_) = t.modifier {} else { panic!(); } assert_eq!(t.path.segments.len(), 1); assert_eq!(format!("{}", t.path.segments[0].ident), "Sized"); }