mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
Silence known deprecation warnings (#2651)
* Silence known deprecation warnings 1. Prefixes known instances of usages of client.backend and client.import_lock with `#[allow(deprecated)]` to silence the warnings. 2. Remove file-global `#![allow(deprecated)]` used in these cases. Both to prevent us overlooking externally caused deprecation messages. * fixing missing ; * fix missing test cases * move deprecated markers to make CI happy * move deprecated markers to make CI happy * attempt to fix the test * bumping impl_version of node runtime * Minor cleanup
This commit is contained in:
committed by
Tomasz Drwięga
parent
b10ecd7931
commit
22d3043917
@@ -83,6 +83,7 @@ where C: Components {
|
||||
TransferRateFormat(bandwidth_upload),
|
||||
);
|
||||
|
||||
#[allow(deprecated)]
|
||||
let backend = (*client).backend();
|
||||
let used_state_cache_size = match backend.used_state_cache_size(){
|
||||
Some(size) => size,
|
||||
@@ -132,6 +133,7 @@ where C: Components {
|
||||
if let Some((ref last_num, ref last_hash)) = last {
|
||||
if n.header.parent_hash() != last_hash {
|
||||
let tree_route = ::client::blockchain::tree_route(
|
||||
#[allow(deprecated)]
|
||||
client.backend().blockchain(),
|
||||
BlockId::Hash(last_hash.clone()),
|
||||
BlockId::Hash(n.hash),
|
||||
|
||||
Reference in New Issue
Block a user