mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 13:57:58 +00:00
depend-o-pocalipse (#9450)
Remove unneeded dependencies and dev-dependencies. Made self_destruct test not dependent on wasm bin size. Updated code related to deprecated warning on tracing-subscriber `scope()` ( See https://github.com/tokio-rs/tracing/issues/1429 )
This commit is contained in:
@@ -53,13 +53,14 @@ impl BuilderDef {
|
||||
is_generic |= line.is_generic;
|
||||
|
||||
data = Some(match &line.storage_type {
|
||||
StorageLineTypeDef::Simple(_) if line.is_option =>
|
||||
StorageLineTypeDef::Simple(_) if line.is_option => {
|
||||
quote_spanned!(builder.span() =>
|
||||
// NOTE: the type of `data` is specified when used later in the code
|
||||
let builder: fn(&Self) -> _ = #builder;
|
||||
let data = builder(self);
|
||||
let data = Option::as_ref(&data);
|
||||
),
|
||||
)
|
||||
},
|
||||
_ => quote_spanned!(builder.span() =>
|
||||
// NOTE: the type of `data` is specified when used later in the code
|
||||
let builder: fn(&Self) -> _ = #builder;
|
||||
@@ -70,8 +71,9 @@ impl BuilderDef {
|
||||
is_generic |= line.is_generic;
|
||||
|
||||
data = Some(match &line.storage_type {
|
||||
StorageLineTypeDef::Simple(_) if line.is_option =>
|
||||
quote!( let data = Some(&self.#config); ),
|
||||
StorageLineTypeDef::Simple(_) if line.is_option => {
|
||||
quote!( let data = Some(&self.#config); )
|
||||
},
|
||||
_ => quote!( let data = &self.#config; ),
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user