File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,6 +60,8 @@ impl AWSClient {
6060 }
6161}
6262
63+ // I suppose this is acceptable for a proc-macro
64+ #[ allow( clippy:: large_enum_variant) ]
6365enum OptionalParameter {
6466 Batch ( bool ) ,
6567 ExcludeLambdaHandler ( bool ) ,
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ impl From<(String, Span)> for Name {
7878 match CaseType :: case ( orig. as_str ( ) ) {
7979 CaseType :: Camel => {
8080 let mut slice_start = 0 ;
81- for ( i, c) in orig. chars ( ) . enumerate ( ) {
81+ for ( i, c) in orig. char_indices ( ) {
8282 if c. is_uppercase ( ) {
8383 words. push ( Word ( orig[ slice_start..i] . to_lowercase ( ) ) ) ;
8484 slice_start = i;
@@ -88,7 +88,7 @@ impl From<(String, Span)> for Name {
8888 }
8989 CaseType :: Pascal => {
9090 let mut slice_start = 0 ;
91- for ( i, c) in orig. chars ( ) . enumerate ( ) {
91+ for ( i, c) in orig. char_indices ( ) {
9292 if c. is_uppercase ( ) && i != 0 {
9393 words. push ( Word ( orig[ slice_start..i] . to_lowercase ( ) ) ) ;
9494 slice_start = i;
You can’t perform that action at this time.
0 commit comments