Skip to content

Commit

Permalink
remove commented Rust code.
Browse files Browse the repository at this point in the history
  • Loading branch information
axaysagathiya committed Oct 20, 2022
1 parent da9e32e commit ec37a64
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions pkg/scale/decode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,34 +132,6 @@ func Test_decodeState_decodeSlice(t *testing.T) {
}
}

// // Rust code to encode a map of string to struct.
// let mut btree_map: BTreeMap<String, User> = BTreeMap::new();
// match btree_map.entry("string1".to_string()) {
// Entry::Vacant(entry) => {
// entry.insert(User{
// active: true,
// username: "lorem".to_string(),
// email: "lorem@ipsum.org".to_string(),
// sign_in_count: 1,
// });
// ()
// },
// Entry::Occupied(_) => (),
// }
// match btree_map.entry("string2".to_string()) {
// Entry::Vacant(entry) => {
// entry.insert(User{
// active: false,
// username: "john".to_string(),
// email: "jack@gmail.com".to_string(),
// sign_in_count: 73,
// });
// ()
// },
// Entry::Occupied(_) => (),
// }
// println!("{:?}", btree_map.encode());

type user struct {
Active bool
Username string
Expand Down

0 comments on commit ec37a64

Please sign in to comment.