mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-22 04:28:00 +00:00
fix clippy (#1334)
This commit is contained in:
@@ -21,7 +21,7 @@ use crate::error::CodegenError;
|
||||
pub use self::{
|
||||
composite_def::{CompositeDef, CompositeDefFieldType, CompositeDefFields},
|
||||
derives::{Derives, DerivesRegistry},
|
||||
substitutes::{AbsolutePath, TypeSubstitutes},
|
||||
substitutes::TypeSubstitutes,
|
||||
type_def::TypeDefGen,
|
||||
type_def_params::TypeDefParameters,
|
||||
type_path::{TypeParameter, TypePath, TypePathType},
|
||||
|
||||
@@ -11,7 +11,7 @@ mod wasm_platform;
|
||||
#[cfg(feature = "web")]
|
||||
mod wasm_socket;
|
||||
|
||||
pub use helpers::{build_platform, PlatformType};
|
||||
pub use helpers::build_platform;
|
||||
|
||||
#[cfg(feature = "native")]
|
||||
mod helpers {
|
||||
|
||||
@@ -230,10 +230,7 @@ impl<Res: DeserializeOwned> Stream for RpcSubscription<Res> {
|
||||
mod jsonrpsee_helpers {
|
||||
pub use jsonrpsee::{
|
||||
client_transport::ws::{Receiver, Sender, Url, WsTransportClientBuilder},
|
||||
core::{
|
||||
client::{Client, ClientBuilder},
|
||||
Error,
|
||||
},
|
||||
core::{client::Client, Error},
|
||||
};
|
||||
|
||||
/// Build WS RPC client from URL
|
||||
|
||||
@@ -249,7 +249,7 @@ mod jsonrpsee_helpers {
|
||||
use crate::error::{Error, LightClientError};
|
||||
pub use jsonrpsee::{
|
||||
client_transport::ws::{Receiver, Sender, Url, WsTransportClientBuilder},
|
||||
core::client::{Client, ClientBuilder},
|
||||
core::client::Client,
|
||||
};
|
||||
|
||||
/// Build WS RPC client from URL
|
||||
|
||||
@@ -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