File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -292,15 +292,15 @@ impl Library {
292
292
parent_name_prefix : Option < & str > ,
293
293
parent_ctype_prefix : Option < & str > ,
294
294
) -> Result < Option < Type > , String > {
295
- let record_name = elem. attr_required ( "name" ) ? ;
295
+ let record_name = elem. attr ( "name" ) . unwrap_or_default ( ) ;
296
296
// Records starting with `_` are intended to be private and should not be bound
297
297
if record_name. starts_with ( '_' ) {
298
298
parser. ignore_element ( ) ?;
299
299
return Ok ( None ) ;
300
300
}
301
301
let is_class_record = record_name. ends_with ( "Class" ) ;
302
302
303
- let c_type = elem. attr_required ( "type" ) ? ;
303
+ let c_type = elem. attr ( "type" ) . unwrap_or_default ( ) ;
304
304
let symbol_prefix = elem. attr ( "symbol-prefix" ) . map ( ToOwned :: to_owned) ;
305
305
let get_type = elem. attr ( "get-type" ) . map ( ToOwned :: to_owned) ;
306
306
let gtype_struct_for = elem. attr ( "is-gtype-struct-for" ) ;
You can’t perform that action at this time.
0 commit comments