mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-24 22:55:43 +00:00
fix clippy (#1334)
This commit is contained in:
@@ -21,7 +21,7 @@ use crate::error::CodegenError;
|
|||||||
pub use self::{
|
pub use self::{
|
||||||
composite_def::{CompositeDef, CompositeDefFieldType, CompositeDefFields},
|
composite_def::{CompositeDef, CompositeDefFieldType, CompositeDefFields},
|
||||||
derives::{Derives, DerivesRegistry},
|
derives::{Derives, DerivesRegistry},
|
||||||
substitutes::{AbsolutePath, TypeSubstitutes},
|
substitutes::TypeSubstitutes,
|
||||||
type_def::TypeDefGen,
|
type_def::TypeDefGen,
|
||||||
type_def_params::TypeDefParameters,
|
type_def_params::TypeDefParameters,
|
||||||
type_path::{TypeParameter, TypePath, TypePathType},
|
type_path::{TypeParameter, TypePath, TypePathType},
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ mod wasm_platform;
|
|||||||
#[cfg(feature = "web")]
|
#[cfg(feature = "web")]
|
||||||
mod wasm_socket;
|
mod wasm_socket;
|
||||||
|
|
||||||
pub use helpers::{build_platform, PlatformType};
|
pub use helpers::build_platform;
|
||||||
|
|
||||||
#[cfg(feature = "native")]
|
#[cfg(feature = "native")]
|
||||||
mod helpers {
|
mod helpers {
|
||||||
|
|||||||
@@ -230,10 +230,7 @@ impl<Res: DeserializeOwned> Stream for RpcSubscription<Res> {
|
|||||||
mod jsonrpsee_helpers {
|
mod jsonrpsee_helpers {
|
||||||
pub use jsonrpsee::{
|
pub use jsonrpsee::{
|
||||||
client_transport::ws::{Receiver, Sender, Url, WsTransportClientBuilder},
|
client_transport::ws::{Receiver, Sender, Url, WsTransportClientBuilder},
|
||||||
core::{
|
core::{client::Client, Error},
|
||||||
client::{Client, ClientBuilder},
|
|
||||||
Error,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Build WS RPC client from URL
|
/// Build WS RPC client from URL
|
||||||
|
|||||||
@@ -249,7 +249,7 @@ mod jsonrpsee_helpers {
|
|||||||
use crate::error::{Error, LightClientError};
|
use crate::error::{Error, LightClientError};
|
||||||
pub use jsonrpsee::{
|
pub use jsonrpsee::{
|
||||||
client_transport::ws::{Receiver, Sender, Url, WsTransportClientBuilder},
|
client_transport::ws::{Receiver, Sender, Url, WsTransportClientBuilder},
|
||||||
core::client::{Client, ClientBuilder},
|
core::client::Client,
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Build WS RPC client from URL
|
/// Build WS RPC client from URL
|
||||||
|
|||||||
@@ -214,7 +214,7 @@ async fn fetch_block_and_decode_extrinsic_details() {
|
|||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
|
|
||||||
// All blocks contain a timestamp; check this first:
|
// 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_root_extrinsic::<node_runtime::Call>().unwrap();
|
||||||
timestamp
|
timestamp
|
||||||
.as_extrinsic::<node_runtime::timestamp::calls::types::Set>()
|
.as_extrinsic::<node_runtime::timestamp::calls::types::Set>()
|
||||||
|
|||||||
@@ -103,10 +103,7 @@ async fn run() {
|
|||||||
mod client {
|
mod client {
|
||||||
pub use jsonrpsee::{
|
pub use jsonrpsee::{
|
||||||
client_transport::ws::{Receiver, Sender, Url, WsTransportClientBuilder},
|
client_transport::ws::{Receiver, Sender, Url, WsTransportClientBuilder},
|
||||||
core::{
|
core::{client::Client, Error},
|
||||||
client::{Client, ClientBuilder},
|
|
||||||
Error,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
pub use jsonrpsee::core::{client::ClientT, rpc_params};
|
pub use jsonrpsee::core::{client::ClientT, rpc_params};
|
||||||
|
|||||||
Reference in New Issue
Block a user