From b5517a00d816349776cdc1ecd39796fc576178cb Mon Sep 17 00:00:00 2001 From: Miroslav Kovar Date: Thu, 12 Jan 2023 13:28:29 +0100 Subject: [PATCH] More formatting Signed-off-by: Miroslav Kovar --- agency_client/src/messages/update_com_method.rs | 1 - libvdrtools/indy-utils/src/wql.rs | 6 ++---- libvdrtools/indy-wallet/src/lib.rs | 4 +--- shared_vcx/src/validation/did.rs | 1 - shared_vcx/src/validation/verkey.rs | 1 - 5 files changed, 3 insertions(+), 10 deletions(-) diff --git a/agency_client/src/messages/update_com_method.rs b/agency_client/src/messages/update_com_method.rs index 15cfe36aa0..18c662c749 100644 --- a/agency_client/src/messages/update_com_method.rs +++ b/agency_client/src/messages/update_com_method.rs @@ -64,7 +64,6 @@ impl UpdateComMethod { #[cfg(test)] mod tests { - #[test] #[cfg(feature = "general_test")] diff --git a/libvdrtools/indy-utils/src/wql.rs b/libvdrtools/indy-utils/src/wql.rs index ec0cfaeb8b..e2140aa1d9 100644 --- a/libvdrtools/indy-utils/src/wql.rs +++ b/libvdrtools/indy-utils/src/wql.rs @@ -37,9 +37,7 @@ impl<'de> Deserialize<'de> for Query { let v = Value::deserialize(deserializer)?; match v { - serde_json::Value::Object(map) => { - parse_query(map).map_err(de::Error::missing_field) - } + serde_json::Value::Object(map) => parse_query(map).map_err(de::Error::missing_field), serde_json::Value::Array(array) => { // cast old restrictions format to wql let mut res: Vec = Vec::new(); @@ -2689,7 +2687,7 @@ mod tests { let value1 = _random_string(10); let json = json!(vec![ - json ! ({name1.clone(): value1}), + json!({ name1.clone(): value1 }), json!({ name2: serde_json::Value::Null }) ]) .to_string(); diff --git a/libvdrtools/indy-wallet/src/lib.rs b/libvdrtools/indy-wallet/src/lib.rs index ccf33e7f5b..f449b41af7 100644 --- a/libvdrtools/indy-wallet/src/lib.rs +++ b/libvdrtools/indy-wallet/src/lib.rs @@ -911,9 +911,7 @@ impl WalletService { credentials: &Credentials, ) -> IndyResult<(Arc, Option, Option)> { let storage_type = { - let storage_type = config - .storage_type.as_deref() - .unwrap_or("default"); + let storage_type = config.storage_type.as_deref().unwrap_or("default"); self.storage_types .lock() diff --git a/shared_vcx/src/validation/did.rs b/shared_vcx/src/validation/did.rs index f55dfb1a5e..e23c5e8c81 100644 --- a/shared_vcx/src/validation/did.rs +++ b/shared_vcx/src/validation/did.rs @@ -33,7 +33,6 @@ pub fn validate_did(did: &str) -> SharedVcxResult { #[cfg(test)] mod tests { - #[test] #[cfg(feature = "general_test")] diff --git a/shared_vcx/src/validation/verkey.rs b/shared_vcx/src/validation/verkey.rs index 2f98be1ab1..8d358290f1 100644 --- a/shared_vcx/src/validation/verkey.rs +++ b/shared_vcx/src/validation/verkey.rs @@ -18,7 +18,6 @@ pub fn validate_verkey(verkey: &str) -> SharedVcxResult { #[cfg(test)] mod tests { - #[test] #[cfg(feature = "general_test")]