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 11#![ warn( clippy:: all, clippy:: pedantic) ]
22#![ allow( clippy:: needless_return, clippy:: redundant_field_names) ]
3- #![ allow( clippy:: stutter , clippy:: use_self ) ]
3+ #![ allow( clippy:: use_self , clippy:: too_many_lines ) ]
44// TODO: improve the code and make it simpler to read
5- #![ allow( clippy:: cyclomatic_complexity ) ]
5+ #![ allow( clippy:: cognitive_complexity ) ]
66
77extern crate proc_macro;
88
@@ -25,8 +25,8 @@ pub fn soa_derive(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
2525 generated. append_all ( vec:: derive ( & input) ) ;
2626 generated. append_all ( refs:: derive ( & input) ) ;
2727 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) ) ;
3030 generated. append_all ( iter:: derive ( & input) ) ;
3131 generated. into ( )
3232}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use quote::quote;
55
66use crate :: input:: Input ;
77
8- pub fn derive_slice ( input : & Input ) -> TokenStream {
8+ pub fn derive ( input : & Input ) -> TokenStream {
99 let other_derive = & input. derive_with_exceptions ( ) ;
1010 let visibility = & input. visibility ;
1111 let slice_name = & input. slice_name ( ) ;
@@ -209,7 +209,7 @@ pub fn derive_slice(input: &Input) -> TokenStream {
209209 return generated;
210210}
211211
212- pub fn derive_slice_mut ( input : & Input ) -> TokenStream {
212+ pub fn derive_mut ( input : & Input ) -> TokenStream {
213213 let other_derive = & input. derive_with_exceptions ( ) ;
214214 let visibility = & input. visibility ;
215215 let slice_name = & input. slice_name ( ) ;
You can’t perform that action at this time.
0 commit comments