Allow `Sized` bounds
[ldk-c-bindings] / c-bindings-gen / src / types.rs
index 0ff81f8132d81f748045b080c1f7932b7cfa6992..6d97ccc32ffb10357bf020c2eefe8c56bea01b78 100644 (file)
@@ -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");
                                                                        }