File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
scylla-cql/src/types/serialize Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1535,7 +1535,7 @@ mod tests {
15351535 }
15361536
15371537 #[ test]
1538- fn test_dyn_serialize_cql ( ) {
1538+ fn test_dyn_serialize_value ( ) {
15391539 let v: i32 = 123 ;
15401540 let mut typed_data = Vec :: new ( ) ;
15411541 let typed_data_writer = CellWriter :: new ( & mut typed_data) ;
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ mod serialize;
1313/// in `scylla` crate - not in scylla-macros nor in scylla-cql.
1414/// This is because of rustdocs limitations that are hard to explain here.
1515#[ proc_macro_derive( SerializeValue , attributes( scylla) ) ]
16- pub fn serialize_cql_derive ( tokens_input : TokenStream ) -> TokenStream {
17- match serialize:: cql:: derive_serialize_cql ( tokens_input) {
16+ pub fn serialize_value_derive ( tokens_input : TokenStream ) -> TokenStream {
17+ match serialize:: cql:: derive_serialize_value ( tokens_input) {
1818 Ok ( t) => t. into_token_stream ( ) . into ( ) ,
1919 Err ( e) => e. into_compile_error ( ) . into ( ) ,
2020 }
Original file line number Diff line number Diff line change @@ -61,7 +61,9 @@ struct Context {
6161 fields : Vec < Field > ,
6262}
6363
64- pub ( crate ) fn derive_serialize_cql ( tokens_input : TokenStream ) -> Result < syn:: ItemImpl , syn:: Error > {
64+ pub ( crate ) fn derive_serialize_value (
65+ tokens_input : TokenStream ,
66+ ) -> Result < syn:: ItemImpl , syn:: Error > {
6567 let input: syn:: DeriveInput = syn:: parse ( tokens_input) ?;
6668 let struct_name = input. ident . clone ( ) ;
6769 let named_fields = crate :: parser:: parse_named_fields ( & input, "SerializeValue" ) ?;
You can’t perform that action at this time.
0 commit comments