mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-12-02 15:27:06 +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:
1 parent
b10ecd7931
commit
22d3043917
20 files changed
+95
-38
No files matched your search
@@ -1026,6 +1026,7 @@ mod tests {
|
||||
let mut runtime = current_thread::Runtime::new().unwrap();
|
||||
for (peer_id, key) in peers {
|
||||
let client = net.lock().peer(*peer_id).client().as_full().expect("full clients are created").clone();
|
||||
#[allow(deprecated)]
|
||||
let select_chain = LongestChain::new(
|
||||
client.backend().clone(),
|
||||
client.import_lock().clone(),
|
||||
|
||||
Reference in new issue
Block a user