mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-21 18:09:55 +00:00
Fix tons of warnings in newest nightly (#2784)
* Fix tons of warnings in newest nightly * Fix sr-api-macro doc tests
This commit is contained in:
1 parent
9700029203
commit
6142f95611
73 files changed
+359
-316
No files matched your search
@@ -91,7 +91,7 @@ impl<C, Block> OffchainWorkers<C, Block> where
|
||||
{
|
||||
let runtime = self.client.runtime_api();
|
||||
let at = BlockId::number(*number);
|
||||
let has_api = runtime.has_api::<OffchainWorkerApi<Block>>(&at);
|
||||
let has_api = runtime.has_api::<dyn OffchainWorkerApi<Block>>(&at);
|
||||
debug!("Checking offchain workers at {:?}: {:?}", at, has_api);
|
||||
|
||||
if has_api.unwrap_or(false) {
|
||||
|
||||
Reference in new issue
Block a user