Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jstuczyn committed Jan 15, 2025
1 parent 7c46410 commit b295054
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions common/wasm/client-core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
// Copyright 2023 - Nym Technologies SA <contact@nymtech.net>
// SPDX-License-Identifier: Apache-2.0

#[cfg(target_arch = "wasm32")]
pub mod config;
#[cfg(target_arch = "wasm32")]
pub mod error;
#[cfg(target_arch = "wasm32")]
pub mod helpers;
#[cfg(target_arch = "wasm32")]
pub mod storage;
#[cfg(target_arch = "wasm32")]
pub mod topology;

// re-export types for ease of use
Expand All @@ -29,4 +34,5 @@ pub use nym_validator_client::{DirectSigningReqwestRpcNyxdClient, QueryReqwestRp
// TODO: that's a very nasty import path. it should come from contracts instead!
pub use nym_validator_client::client::IdentityKey;

#[cfg(target_arch = "wasm32")]
pub use wasm_utils::set_panic_hook;
4 changes: 2 additions & 2 deletions common/wasm/client-core/src/storage/wasm_client_traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ pub trait WasmClientStorage: BaseWasmStorage {
.await
.map_err(Into::into)
.map(|arr| {
arr.to_vec()
.into_iter()
arr.iter()
.cloned()
.filter_map(|key| key.as_string())
.collect()
})
Expand Down

0 comments on commit b295054

Please sign in to comment.