Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
gRoussac committed Dec 13, 2024
1 parent 3dc2428 commit 9b8cc3f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/types/key.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
use super::account_hash::AccountHash;
#[cfg(target_arch = "wasm32")]
use super::addr::transfer_addr::TransferAddr;
#[cfg(target_arch = "wasm32")]
use super::addr::{dictionary_addr::DictionaryAddr, hash_addr::HashAddr, uref_addr::URefAddr};
#[cfg(target_arch = "wasm32")]
use super::deploy_hash::DeployHash;
#[cfg(target_arch = "wasm32")]
use super::era_id::EraId;
use super::uref::URef;
use crate::types::sdk_error::SdkError;
use casper_types::bytesrepr::ToBytes;
use casper_types::Key as _Key;
use casper_types::{bytesrepr::ToBytes, Key as _Key};
#[cfg(target_arch = "wasm32")]
use gloo_utils::format::JsValueSerdeExt;
use serde::{Deserialize, Serialize};
Expand All @@ -21,7 +16,6 @@ use wasm_bindgen::prelude::*;
pub struct Key(_Key);

#[wasm_bindgen]
#[cfg(target_arch = "wasm32")]
impl Key {
#[wasm_bindgen(constructor)]
pub fn new(key: Key) -> Result<Key, JsError> {
Expand Down Expand Up @@ -121,6 +115,7 @@ impl Key {
_Key::to_formatted_string(self.0)
}

#[cfg(target_arch = "wasm32")]
#[wasm_bindgen(js_name = "fromFormattedString")]
pub fn from_formatted_str_js_alias(formatted_str: &str) -> Result<Key, JsError> {
Self::from_formatted_str(formatted_str)
Expand Down

0 comments on commit 9b8cc3f

Please sign in to comment.