fix clippy (#1334)

This commit is contained in:
Niklas Adolfsson
2024-01-03 12:18:56 +01:00
committed by GitHub
parent 47b8c90be5
commit 38d8e714ec
6 changed files with 6 additions and 12 deletions
+1 -1
View File
@@ -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},
+1 -1
View File
@@ -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 {
+1 -4
View File
@@ -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
+1 -1
View File
@@ -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>()
+1 -4
View File
@@ -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};