mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 15:51:12 +00:00
fix clippy (#1334)
This commit is contained in:
@@ -214,7 +214,7 @@ async fn fetch_block_and_decode_extrinsic_details() {
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
// All blocks contain a timestamp; check this first:
|
||||
let timestamp = block_extrinsics.get(0).unwrap();
|
||||
let timestamp = block_extrinsics.first().unwrap();
|
||||
timestamp.as_root_extrinsic::<node_runtime::Call>().unwrap();
|
||||
timestamp
|
||||
.as_extrinsic::<node_runtime::timestamp::calls::types::Set>()
|
||||
|
||||
@@ -103,10 +103,7 @@ async fn run() {
|
||||
mod client {
|
||||
pub use jsonrpsee::{
|
||||
client_transport::ws::{Receiver, Sender, Url, WsTransportClientBuilder},
|
||||
core::{
|
||||
client::{Client, ClientBuilder},
|
||||
Error,
|
||||
},
|
||||
core::{client::Client, Error},
|
||||
};
|
||||
|
||||
pub use jsonrpsee::core::{client::ClientT, rpc_params};
|
||||
|
||||
Reference in New Issue
Block a user