mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 05:47: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:
@@ -350,8 +350,9 @@ impl GenericKind {
|
||||
match self {
|
||||
GenericKind::None => quote::quote!(),
|
||||
GenericKind::Config => quote::quote_spanned!(span => T: Config),
|
||||
GenericKind::ConfigAndInstance =>
|
||||
quote::quote_spanned!(span => T: Config<I>, I: 'static),
|
||||
GenericKind::ConfigAndInstance => {
|
||||
quote::quote_spanned!(span => T: Config<I>, I: 'static)
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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