File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
#![ warn( clippy:: all, clippy:: pedantic) ]
2
2
#![ allow( clippy:: needless_return, clippy:: redundant_field_names) ]
3
- #![ allow( clippy:: stutter , clippy:: use_self ) ]
3
+ #![ allow( clippy:: use_self , clippy:: too_many_lines ) ]
4
4
// TODO: improve the code and make it simpler to read
5
- #![ allow( clippy:: cyclomatic_complexity ) ]
5
+ #![ allow( clippy:: cognitive_complexity ) ]
6
6
7
7
extern crate proc_macro;
8
8
@@ -25,8 +25,8 @@ pub fn soa_derive(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
25
25
generated. append_all ( vec:: derive ( & input) ) ;
26
26
generated. append_all ( refs:: derive ( & input) ) ;
27
27
generated. append_all ( ptr:: derive ( & input) ) ;
28
- generated. append_all ( slice:: derive_slice ( & input) ) ;
29
- generated. append_all ( slice:: derive_slice_mut ( & input) ) ;
28
+ generated. append_all ( slice:: derive ( & input) ) ;
29
+ generated. append_all ( slice:: derive_mut ( & input) ) ;
30
30
generated. append_all ( iter:: derive ( & input) ) ;
31
31
generated. into ( )
32
32
}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use quote::quote;
5
5
6
6
use crate :: input:: Input ;
7
7
8
- pub fn derive_slice ( input : & Input ) -> TokenStream {
8
+ pub fn derive ( input : & Input ) -> TokenStream {
9
9
let other_derive = & input. derive_with_exceptions ( ) ;
10
10
let visibility = & input. visibility ;
11
11
let slice_name = & input. slice_name ( ) ;
@@ -209,7 +209,7 @@ pub fn derive_slice(input: &Input) -> TokenStream {
209
209
return generated;
210
210
}
211
211
212
- pub fn derive_slice_mut ( input : & Input ) -> TokenStream {
212
+ pub fn derive_mut ( input : & Input ) -> TokenStream {
213
213
let other_derive = & input. derive_with_exceptions ( ) ;
214
214
let visibility = & input. visibility ;
215
215
let slice_name = & input. slice_name ( ) ;
You can’t perform that action at this time.
0 commit comments