Skip to content

Commit 4bdd8db

Browse files
committed
fixed merging errors
1 parent 528191e commit 4bdd8db

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

program/rust/build.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ use bindgen::Builder;
55
fn main() {
66
println!("cargo:rustc-link-search=../c/target");
77

8-
let borsh_derives: Vec<String> =
9-
vec!["BorshSerialize".to_string(), "BorshDeserialize".to_string()];
10-
118
let borsh_derives = ["BorshSerialize".to_string(), "BorshDeserialize".to_string()];
129

1310
//make a parser and to it type, traits pairs
@@ -17,6 +14,7 @@ fn main() {
1714
parser.register_traits("pc_price_info", borsh_derives.to_vec());
1815
parser.register_traits("cmd_upd_price", borsh_derives.to_vec());
1916

17+
2018
//generate and write bindings
2119
let bindings = Builder::default()
2220
.header("./src/bindings.h")

program/rust/build_utils.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use bindgen::callbacks::ParseCallbacks;
22
use std::collections::HashMap;
33
use std::panic::UnwindSafe;
4-
use std::panic::UnwindSafe;
54

65
///This type stores a hashmap from structnames
76
///to vectors of trait names, and ensures

0 commit comments

Comments
 (0)