Retain Rust code items from mod decorated with subxt attribute (#721)

* refactor: Simplify collecting type substitutes

* Simplify ItemMod::from

* Preserve inner Rust items when expanding the subxt::subxt macro

* No named lifetimes

* Update codegen/src/api/mod.rs

Co-authored-by: Andrew Jones <ascjones@gmail.com>

* Move passing UI tests under `ui_tests`

Co-authored-by: Andrew Jones <ascjones@gmail.com>
This commit is contained in:
Igor Matuszewski
2022-11-23 12:28:49 +01:00
committed by GitHub
parent 15ffbb6c4b
commit 8b46f5c786
4 changed files with 54 additions and 9 deletions
+2
View File
@@ -25,6 +25,8 @@ fn ui_tests() {
let mut m = MetadataTestRunner::default();
let t = trybuild::TestCases::new();
t.pass("src/correct/*.rs");
// Check that storage maps with no keys are handled properly.
t.pass(&m.path_to_ui_test_for_metadata(
"storage_map_no_keys",