Skip to content

Commit 985f1ab

Browse files
committed
fixed merging errors
1 parent 4640741 commit 985f1ab

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

program/rust/build.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,12 @@ use std::vec::Vec;
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
1411
let mut parser = build_utils::DeriveAdderParserCallback::new();
1512
parser.register_traits("cmd_hdr", borsh_derives.to_vec());
1613
parser.register_traits("pc_acc", borsh_derives.to_vec());
17-
//make a parser and to it type, traits pairs
18-
let mut parser = build_utils::DeriveAdderParserCallback::new();
19-
parser.register_traits("cmd_hdr", borsh_derives);
2014

2115
//generate and write bindings
2216
let bindings = Builder::default()

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)