Skip to content

Commit

Permalink
More formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
  • Loading branch information
mirgee committed Jan 12, 2023
1 parent 679e17a commit b5517a0
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 10 deletions.
1 change: 0 additions & 1 deletion agency_client/src/messages/update_com_method.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ impl UpdateComMethod {

#[cfg(test)]
mod tests {


#[test]
#[cfg(feature = "general_test")]
Expand Down
6 changes: 2 additions & 4 deletions libvdrtools/indy-utils/src/wql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<serde_json::Value> = Vec::new();
Expand Down Expand Up @@ -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();
Expand Down
4 changes: 1 addition & 3 deletions libvdrtools/indy-wallet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -911,9 +911,7 @@ impl WalletService {
credentials: &Credentials,
) -> IndyResult<(Arc<dyn WalletStorageType>, Option<String>, Option<String>)> {
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()
Expand Down
1 change: 0 additions & 1 deletion shared_vcx/src/validation/did.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ pub fn validate_did(did: &str) -> SharedVcxResult<String> {

#[cfg(test)]
mod tests {


#[test]
#[cfg(feature = "general_test")]
Expand Down
1 change: 0 additions & 1 deletion shared_vcx/src/validation/verkey.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ pub fn validate_verkey(verkey: &str) -> SharedVcxResult<String> {

#[cfg(test)]
mod tests {


#[test]
#[cfg(feature = "general_test")]
Expand Down

0 comments on commit b5517a0

Please sign in to comment.