From 0c3e0b622d1e9aeb656fc232243f83f56b818807 Mon Sep 17 00:00:00 2001 From: marc2332 Date: Mon, 8 Jan 2024 15:46:50 +0100 Subject: [PATCH] fmt --- bindings/nodejs/src/wallet.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bindings/nodejs/src/wallet.rs b/bindings/nodejs/src/wallet.rs index c7c0b1fe77..25094a5fd9 100644 --- a/bindings/nodejs/src/wallet.rs +++ b/bindings/nodejs/src/wallet.rs @@ -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, @@ -49,7 +52,9 @@ pub async fn create_wallet(options: String) -> Result(&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")]