Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasad1 committed Jan 2, 2024
1 parent ed51059 commit 2cc5d2f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion codegen/src/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down
2 changes: 1 addition & 1 deletion lightclient/src/platform/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
5 changes: 1 addition & 4 deletions subxt/src/backend/rpc/rpc_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,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
Expand Down
2 changes: 1 addition & 1 deletion testing/integration-tests/src/full_client/blocks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>()
Expand Down
5 changes: 1 addition & 4 deletions testing/test-runtime/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 2cc5d2f

Please sign in to comment.