Commit 030da9a 1 parent 4c77b9b commit 030da9a Copy full SHA for 030da9a
File tree 3 files changed +6
-4
lines changed
scylla-cql/src/types/serialize
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1535,7 +1535,7 @@ mod tests {
1535
1535
}
1536
1536
1537
1537
#[ test]
1538
- fn test_dyn_serialize_cql ( ) {
1538
+ fn test_dyn_serialize_value ( ) {
1539
1539
let v: i32 = 123 ;
1540
1540
let mut typed_data = Vec :: new ( ) ;
1541
1541
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;
13
13
/// in `scylla` crate - not in scylla-macros nor in scylla-cql.
14
14
/// This is because of rustdocs limitations that are hard to explain here.
15
15
#[ 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) {
18
18
Ok ( t) => t. into_token_stream ( ) . into ( ) ,
19
19
Err ( e) => e. into_compile_error ( ) . into ( ) ,
20
20
}
Original file line number Diff line number Diff line change @@ -61,7 +61,9 @@ struct Context {
61
61
fields : Vec < Field > ,
62
62
}
63
63
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 > {
65
67
let input: syn:: DeriveInput = syn:: parse ( tokens_input) ?;
66
68
let struct_name = input. ident . clone ( ) ;
67
69
let named_fields = crate :: parser:: parse_named_fields ( & input, "SerializeValue" ) ?;
You can’t perform that action at this time.
0 commit comments