Skip to content

Commit

Permalink
Fix lints
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 Nov 16, 2023
1 parent d8bfe62 commit d919523
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
3 changes: 1 addition & 2 deletions aries/agents/rust/mediator/src/aries_agent/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ impl<T: BaseWallet + 'static, P: MediatorPersistence> Agent<T, P> {
if let Some(service) = &self.service {
let invitation = OutOfBandSender::create()
.append_service(&OobService::AriesService(service.clone()))
.oob
.clone();
.oob;
Ok(invitation)
} else {
Err("No service to create invite for".to_owned())
Expand Down
4 changes: 1 addition & 3 deletions aries/agents/rust/mediator/src/http_routes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ pub async fn handle_didcomm(
State(agent): State<ArcAgent<impl BaseWallet + 'static, impl MediatorPersistence>>,
didcomm_msg: Bytes,
) -> Result<Json<Value>, String> {
didcomm_handlers::handle_aries(State(agent), didcomm_msg)
.await
.map_err(|e| e.to_string())
didcomm_handlers::handle_aries(State(agent), didcomm_msg).await
}

pub async fn readme() -> Html<String> {
Expand Down
2 changes: 1 addition & 1 deletion aries/legacy/libvcx_core/src/api_vcx/api_global/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ fn setup_global_wallet(wallet_handle: WalletHandle) -> LibvcxResult<()> {
// new way
let base_wallet_impl = build_component_base_wallet(wallet_handle);
let mut b_wallet = GLOBAL_BASE_WALLET.write()?;
*b_wallet = Some(base_wallet_impl.clone());
*b_wallet = Some(base_wallet_impl);
// anoncreds
let base_anoncreds_impl = Arc::new(IndyCredxAnonCreds);
let mut b_anoncreds = GLOBAL_BASE_ANONCREDS.write()?;
Expand Down
5 changes: 2 additions & 3 deletions aries/legacy/libvdrtools/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,8 @@ impl Locator {

let did_controller = DidController::new(wallet_service.clone(), crypto_service.clone());

let wallet_controller =
WalletController::new(wallet_service.clone(), crypto_service.clone());
let non_secret_controller = NonSecretsController::new(wallet_service.clone());
let wallet_controller = WalletController::new(wallet_service.clone(), crypto_service);
let non_secret_controller = NonSecretsController::new(wallet_service);

let res = Locator {
crypto_controller,
Expand Down
2 changes: 1 addition & 1 deletion aries_vcx/tests/utils/scenarios/credential_issuance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ pub fn create_holder_from_proposal(proposal: ProposeCredentialV1) -> Holder {
pub fn create_issuer_from_proposal(proposal: ProposeCredentialV1) -> Issuer {
let issuer = Issuer::create_from_proposal("TEST_CREDENTIAL", &proposal).unwrap();
assert_eq!(IssuerState::ProposalReceived, issuer.get_state());
assert_eq!(proposal.clone(), issuer.get_proposal().unwrap());
assert_eq!(proposal, issuer.get_proposal().unwrap());
issuer
}

Expand Down

0 comments on commit d919523

Please sign in to comment.