File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ fn main() {
55 println ! ( "cargo:rustc-link-search=./program/c/target" ) ;
66
77 let borsh_derives = [ "BorshSerialize" . to_string ( ) , "BorshDeserialize" . to_string ( ) ] ;
8- let pod_derive = [ "Pod" . to_string ( ) , "Zeroable" . to_string ( ) ] ;
98
109 //make a parser and to it type, traits pairs
1110 let mut parser = build_utils:: DeriveAdderParserCallback :: new ( ) ;
@@ -14,7 +13,6 @@ fn main() {
1413 parser. register_traits ( "pc_price_info" , borsh_derives. to_vec ( ) ) ;
1514 parser. register_traits ( "cmd_upd_price" , borsh_derives. to_vec ( ) ) ;
1615 parser. register_traits ( "pc_ema" , borsh_derives. to_vec ( ) ) ;
17- parser. register_traits ( "cmd_add_price" , pod_derive. to_vec ( ) ) ;
1816
1917 //generate and write bindings
2018 let bindings = Builder :: default ( )
Original file line number Diff line number Diff line change @@ -55,3 +55,11 @@ unsafe impl Zeroable for cmd_hdr {
5555#[ cfg( target_endian = "little" ) ]
5656unsafe impl Pod for cmd_hdr {
5757}
58+
59+ #[ cfg( target_endian = "little" ) ]
60+ unsafe impl Zeroable for cmd_add_price_t {
61+ }
62+
63+ #[ cfg( target_endian = "little" ) ]
64+ unsafe impl Pod for cmd_add_price_t {
65+ }
You can’t perform that action at this time.
0 commit comments