Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Jan 8, 2024
1 parent 1ed27b3 commit 0c3e0b6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions bindings/nodejs/src/wallet.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
// Copyright 2023 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

use std::{sync::Arc, ops::{Deref, DerefMut}};
use std::{
ops::{Deref, DerefMut},
sync::Arc,
};

use iota_sdk_bindings_core::{
call_wallet_method as rust_call_wallet_method,
Expand Down Expand Up @@ -49,7 +52,9 @@ pub async fn create_wallet(options: String) -> Result<External<WalletMethodHandl
let wallet_options = serde_json::from_str::<WalletOptions>(&options).map_err(NodejsError::new)?;
let wallet = wallet_options.build().await.map_err(NodejsError::new)?;

Ok(External::new(Arc::new(RwLock::new(WalletMethodHandlerInner(Some(wallet))))))
Ok(External::new(Arc::new(RwLock::new(WalletMethodHandlerInner(Some(
wallet,
))))))
}

#[napi(js_name = "destroyWallet")]
Expand Down

0 comments on commit 0c3e0b6

Please sign in to comment.