Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
  • Loading branch information
Patrik-Stas committed May 2, 2023
1 parent b8c62d4 commit 6c3f9ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 4 additions & 3 deletions aries_vcx/src/utils/author_agreement.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use aries_vcx_core::utils::author_agreement::{
get_global_txn_author_agreement, set_global_txn_author_agreement, TxnAuthorAgreementAcceptanceData,
};
use serde_json;
use aries_vcx_core::utils::author_agreement::{get_global_txn_author_agreement, set_global_txn_author_agreement, TxnAuthorAgreementAcceptanceData};

use crate::errors::error::{AriesVcxError, AriesVcxErrorKind, VcxResult};
use crate::global::settings;
Expand All @@ -16,6 +18,5 @@ pub fn set_txn_author_agreement(
}

pub fn get_txn_author_agreement() -> VcxResult<Option<TxnAuthorAgreementAcceptanceData>> {
get_global_txn_author_agreement()
.map_err(|err| err.into())
get_global_txn_author_agreement().map_err(|err| err.into())
}
5 changes: 2 additions & 3 deletions aries_vcx_core/src/utils/author_agreement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ pub fn get_global_txn_author_agreement() -> VcxCoreResult<Option<TxnAuthorAgreem
}
}


#[cfg(test)]
#[allow(clippy::unwrap_used)]
mod unit_tests {
Expand All @@ -75,7 +74,7 @@ mod unit_tests {
ACCEPTANCE_MECHANISM.to_string(),
TIME_OF_ACCEPTANCE,
)
.unwrap();
.unwrap();

assert!(settings::get_config_value(settings::CONFIG_TXN_AUTHOR_AGREEMENT).is_ok());
}
Expand All @@ -90,7 +89,7 @@ mod unit_tests {
ACCEPTANCE_MECHANISM.to_string(),
TIME_OF_ACCEPTANCE,
)
.unwrap();
.unwrap();

let meta = get_global_txn_author_agreement().unwrap().unwrap();

Expand Down

0 comments on commit 6c3f9ea

Please sign in to comment.