cargo fmt with stable defaults (#876)

This commit is contained in:
James Wilson
2023-03-21 16:53:47 +00:00
committed by GitHub
parent c63ff6ec6d
commit 7c252fccf7
110 changed files with 663 additions and 1949 deletions
@@ -3,12 +3,7 @@
// see LICENSE for license details.
use regex::Regex;
use subxt_codegen::{
CratePath,
DerivesRegistry,
RuntimeGenerator,
TypeSubstitutes,
};
use subxt_codegen::{CratePath, DerivesRegistry, RuntimeGenerator, TypeSubstitutes};
fn load_test_metadata() -> frame_metadata::RuntimeMetadataPrefixed {
let bytes = test_runtime::METADATA;
@@ -162,7 +157,8 @@ fn check_root_attrs_preserved() {
let doc_str_loc = generated_code
.find("Some root level documentation")
.expect("root docs should be preserved");
let attr_loc = generated_code.find("some_root_attribute") // '#' is space separated in generated output.
let attr_loc = generated_code
.find("some_root_attribute") // '#' is space separated in generated output.
.expect("root attr should be preserved");
let mod_start = generated_code
.find("pub mod api")