From 0fa63a9c230045d12c479522722dc9069e97f224 Mon Sep 17 00:00:00 2001 From: Enrico Marconi Date: Wed, 4 Sep 2024 09:34:51 +0200 Subject: [PATCH] cargo fmt --- .../linked_verifiable_presentation_service.rs | 22 ++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/bindings/wasm/src/credential/linked_verifiable_presentation_service.rs b/bindings/wasm/src/credential/linked_verifiable_presentation_service.rs index 824ed4b61..1033316cc 100644 --- a/bindings/wasm/src/credential/linked_verifiable_presentation_service.rs +++ b/bindings/wasm/src/credential/linked_verifiable_presentation_service.rs @@ -29,8 +29,12 @@ impl WasmLinkedVerifiablePresentationService { id, linked_vp, properties, - } = options.into_serde::().wasm_result()?; - Ok(Self(LinkedVerifiablePresentationService::new(id, linked_vp, properties).wasm_result()?)) + } = options + .into_serde::() + .wasm_result()?; + Ok(Self( + LinkedVerifiablePresentationService::new(id, linked_vp, properties).wasm_result()?, + )) } /// Returns the domains contained in the Linked Verifiable Presentation Service. @@ -60,7 +64,9 @@ impl WasmLinkedVerifiablePresentationService { /// Errors if `service` is not a valid Linked Verifiable Presentation Service. #[wasm_bindgen(js_name = fromService)] pub fn from_service(service: &WasmService) -> Result { - Ok(Self(LinkedVerifiablePresentationService::try_from(service.0.clone()).wasm_result()?)) + Ok(Self( + LinkedVerifiablePresentationService::try_from(service.0.clone()).wasm_result()?, + )) } /// Returns `true` if a {@link Service} is a valid Linked Verifiable Presentation Service. @@ -93,5 +99,11 @@ struct ILinkedVerifiablePresentationServiceHelper { properties: Object, } -impl_wasm_clone!(WasmLinkedVerifiablePresentationService, LinkedVerifiablePresentationService); -impl_wasm_json!(WasmLinkedVerifiablePresentationService, LinkedVerifiablePresentationService); +impl_wasm_clone!( + WasmLinkedVerifiablePresentationService, + LinkedVerifiablePresentationService +); +impl_wasm_json!( + WasmLinkedVerifiablePresentationService, + LinkedVerifiablePresentationService +);