File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -299,7 +299,9 @@ impl<'ast> AstConsumer<'ast> {
299
299
// If a record decl doesn't have any inner nodes, it's just
300
300
// a foreward declaration and we can skip it
301
301
if inn. inner . is_empty ( ) || rec. definition_data . is_none ( ) {
302
- let Some ( name) = rec. name . as_deref ( ) else { continue ; } ;
302
+ let Some ( name) = rec. name . as_deref ( ) else {
303
+ continue ;
304
+ } ;
303
305
304
306
if !self . classes . contains_key ( name) {
305
307
self . recs
Original file line number Diff line number Diff line change @@ -182,7 +182,9 @@ impl<'ast> super::AstConsumer<'ast> {
182
182
// PhysX uses a PxFlags<> template typedef to create a bitfield type for
183
183
// a specific enum, we use this typedef to also generate an appropriate
184
184
// bitflags that can be transparently passed between the FFI boundary
185
- let Some ( flags) = super :: no_physx ( & td. kind . qual_type ) . strip_prefix ( "PxFlags<" ) else { return Ok ( ( ) ) } ;
185
+ let Some ( flags) = super :: no_physx ( & td. kind . qual_type ) . strip_prefix ( "PxFlags<" ) else {
186
+ return Ok ( ( ) ) ;
187
+ } ;
186
188
// Get rid of `>`
187
189
let flags = & flags[ ..flags. len ( ) - 1 ] ;
188
190
Original file line number Diff line number Diff line change @@ -58,7 +58,9 @@ impl Constructor {
58
58
}
59
59
} ) ;
60
60
61
- let Some ( first) = iter. next ( ) else { return false } ;
61
+ let Some ( first) = iter. next ( ) else {
62
+ return false ;
63
+ } ;
62
64
63
65
if first. ends_with ( " &&" ) {
64
66
return true ;
@@ -443,7 +445,9 @@ impl<'ast> super::AstConsumer<'ast> {
443
445
return Ok ( ( ) ) ;
444
446
}
445
447
446
- let Some ( rname) = rec. name . as_deref ( ) else { return Ok ( ( ) ) } ;
448
+ let Some ( rname) = rec. name . as_deref ( ) else {
449
+ return Ok ( ( ) ) ;
450
+ } ;
447
451
448
452
anyhow:: ensure!(
449
453
rec. definition_data. is_some( ) ,
@@ -674,7 +678,9 @@ impl<'ast> super::AstConsumer<'ast> {
674
678
template_types : & [ ( & str , & super :: TemplateArg < ' ast > ) ] ,
675
679
fields : & mut Vec < FieldBinding < ' ast > > ,
676
680
) -> anyhow:: Result < ( ) > {
677
- let Some ( rname) = rec. name . as_deref ( ) else { return Ok ( ( ) ) } ;
681
+ let Some ( rname) = rec. name . as_deref ( ) else {
682
+ return Ok ( ( ) ) ;
683
+ } ;
678
684
let mut is_public = !matches ! ( rec. tag_used, Some ( Tag :: Class ) ) ;
679
685
680
686
for inn in & node. inner {
You can’t perform that action at this time.
0 commit comments