From ec37a64a22edf89b5344a57eeaac15eb35305405 Mon Sep 17 00:00:00 2001 From: Axay sagathiya Date: Thu, 20 Oct 2022 21:37:00 +0530 Subject: [PATCH] remove commented Rust code. --- pkg/scale/decode_test.go | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/pkg/scale/decode_test.go b/pkg/scale/decode_test.go index d97dcaac73..7439fea561 100644 --- a/pkg/scale/decode_test.go +++ b/pkg/scale/decode_test.go @@ -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 = 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