@@ -84,7 +84,7 @@ impl<'a> DirectDeclSmartConstructors<'a> {
84
84
let mut qualified_name =
85
85
String :: with_capacity_in ( namespace. len ( ) + parts. len ( ) * 10 , this. state . arena ) ;
86
86
match parts. first ( ) {
87
- Some ( Node :: Backslash ( _) ) => ( ) , // Already fully-qualified
87
+ Some ( Node :: Backslash ( _) ) => { } // Already fully-qualified
88
88
_ => qualified_name. push_str ( namespace) ,
89
89
}
90
90
for part in parts {
@@ -279,7 +279,7 @@ fn read_member_modifiers<'a: 'b, 'b>(modifiers: impl Iterator<Item = &'b Node<'a
279
279
Node :: Token ( TokenKind :: Static ) => ret. is_static = true ,
280
280
Node :: Token ( TokenKind :: Abstract ) => ret. is_abstract = true ,
281
281
Node :: Token ( TokenKind :: Final ) => ret. is_final = true ,
282
- _ => ( ) ,
282
+ _ => { }
283
283
}
284
284
}
285
285
ret
@@ -427,7 +427,7 @@ impl<'a> ClassishNameBuilder<'a> {
427
427
class_name. push_str ( name) ;
428
428
* self = InClassish ( arena. alloc ( ( class_name. into_bump_str ( ) , pos, token_kind) ) )
429
429
}
430
- InClassish ( _) => ( ) ,
430
+ InClassish ( _) => { }
431
431
}
432
432
}
433
433
@@ -864,7 +864,7 @@ impl<'a> Node<'a> {
864
864
arena. alloc ( Ty_ :: Tapply ( arena. alloc ( ( class_name, & [ ] [ ..] ) ) ) ) ,
865
865
) ) ;
866
866
}
867
- _ => ( ) ,
867
+ _ => { }
868
868
}
869
869
}
870
870
@@ -936,7 +936,7 @@ impl<'a> Node<'a> {
936
936
"__ReturnDisposable" => {
937
937
attributes. returns_disposable = true ;
938
938
}
939
- _ => ( ) ,
939
+ _ => { }
940
940
}
941
941
} else {
942
942
panic ! ( "Expected an attribute, but was {:?}" , self ) ;
@@ -1799,7 +1799,7 @@ impl<'a> FlattenSmartConstructors<'a, State<'a>> for DirectDeclSmartConstructors
1799
1799
1800
1800
// We only want to check the mode if <? is the very first token we see.
1801
1801
match ( & self . state . file_mode_builder , & kind) {
1802
- ( FileModeBuilder :: None , TokenKind :: Markup ) => ( ) ,
1802
+ ( FileModeBuilder :: None , TokenKind :: Markup ) => { }
1803
1803
( FileModeBuilder :: None , TokenKind :: LessThanQuestion ) => {
1804
1804
self . state . file_mode_builder = FileModeBuilder :: Pending
1805
1805
}
@@ -1814,7 +1814,7 @@ impl<'a> FlattenSmartConstructors<'a, State<'a>> for DirectDeclSmartConstructors
1814
1814
Mode :: Mstrict
1815
1815
} ) ;
1816
1816
}
1817
- ( _, _) => ( ) ,
1817
+ ( _, _) => { }
1818
1818
}
1819
1819
1820
1820
let result = match kind {
@@ -2289,7 +2289,7 @@ impl<'a> FlattenSmartConstructors<'a, State<'a>> for DirectDeclSmartConstructors
2289
2289
2290
2290
match ( & op, rhs) {
2291
2291
( Bop :: Eq ( _) , Node :: Token ( TokenKind :: Yield ) ) => return rhs,
2292
- _ => ( ) ,
2292
+ _ => { }
2293
2293
}
2294
2294
2295
2295
let pos = unwrap_or_return ! ( Pos :: merge(
@@ -2893,7 +2893,7 @@ impl<'a> FlattenSmartConstructors<'a, State<'a>> for DirectDeclSmartConstructors
2893
2893
match modifier {
2894
2894
Node :: Token ( TokenKind :: Abstract ) => class_kind = ClassKind :: Cabstract ,
2895
2895
Node :: Token ( TokenKind :: Final ) => final_ = true ,
2896
- _ => ( ) ,
2896
+ _ => { }
2897
2897
}
2898
2898
}
2899
2899
@@ -2923,7 +2923,7 @@ impl<'a> FlattenSmartConstructors<'a, State<'a>> for DirectDeclSmartConstructors
2923
2923
for attribute in attributes. iter ( ) {
2924
2924
match attribute {
2925
2925
& Node :: Attribute ( ..) => user_attributes_len += 1 ,
2926
- _ => ( ) ,
2926
+ _ => { }
2927
2927
}
2928
2928
}
2929
2929
@@ -2961,7 +2961,7 @@ impl<'a> FlattenSmartConstructors<'a, State<'a>> for DirectDeclSmartConstructors
2961
2961
methods_len += 1
2962
2962
}
2963
2963
}
2964
- _ => ( ) ,
2964
+ _ => { }
2965
2965
}
2966
2966
}
2967
2967
@@ -2982,7 +2982,7 @@ impl<'a> FlattenSmartConstructors<'a, State<'a>> for DirectDeclSmartConstructors
2982
2982
for attribute in attributes. iter ( ) {
2983
2983
match attribute {
2984
2984
Node :: Attribute ( attr) => user_attributes. push ( self . user_attribute_to_decl ( & attr) ) ,
2985
- _ => ( ) ,
2985
+ _ => { }
2986
2986
}
2987
2987
}
2988
2988
// Match ordering of attributes produced by the OCaml decl parser (even
@@ -3041,7 +3041,7 @@ impl<'a> FlattenSmartConstructors<'a, State<'a>> for DirectDeclSmartConstructors
3041
3041
methods. push ( method. clone ( ) ) ;
3042
3042
}
3043
3043
}
3044
- _ => ( ) , // It's not our job to report errors here.
3044
+ _ => { } // It's not our job to report errors here.
3045
3045
}
3046
3046
}
3047
3047
@@ -3381,7 +3381,7 @@ impl<'a> FlattenSmartConstructors<'a, State<'a>> for DirectDeclSmartConstructors
3381
3381
for attribute in attributes. iter ( ) {
3382
3382
match attribute {
3383
3383
Node :: Attribute ( attr) => user_attributes. push ( self . user_attribute_to_decl ( attr) ) ,
3384
- _ => ( ) ,
3384
+ _ => { }
3385
3385
}
3386
3386
}
3387
3387
// Match ordering of attributes produced by the OCaml decl parser (even
@@ -3800,7 +3800,7 @@ impl<'a> FlattenSmartConstructors<'a, State<'a>> for DirectDeclSmartConstructors
3800
3800
fold_string_concat ( & e1, acc) ;
3801
3801
fold_string_concat ( & e2, acc) ;
3802
3802
}
3803
- _ => ( ) ,
3803
+ _ => { }
3804
3804
}
3805
3805
}
3806
3806
0 commit comments