Skip to content

Commit

Permalink
cargo +nightly fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Naian <[email protected]>
  • Loading branch information
nain-F49FF806 committed Oct 19, 2023
1 parent f7a459f commit 45842ec
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion agents/rust/mediator/src/aries_agent/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ use aries_vcx::{
utils::{encryption_envelope::EncryptionEnvelope, mockdata::profile::mock_ledger::MockLedger},
};
use aries_vcx_core::wallet::base_wallet::BaseWallet;
use mediation::storage::MediatorPersistence;
use messages::{
msg_fields::protocols::{
connection::{response::Response, Connection},
out_of_band::invitation::Invitation as OOBInvitation,
},
AriesMessage,
};
use mediation::storage::MediatorPersistence;

// use super::transports::AriesTransport;
// use diddoc_legacy::aries::service::AriesService;
Expand Down
2 changes: 1 addition & 1 deletion agents/rust/mediator/src/aries_agent/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use aries_vcx_core::{
WalletHandle,
};
use diddoc_legacy::aries::{diddoc::AriesDidDoc, service::AriesService};
use mediation::storage::{get_persistence, MediatorPersistence};
use messages::{
msg_fields::protocols::{
connection::{request::Request, response::Response, Connection},
Expand All @@ -23,7 +24,6 @@ use messages::{
AriesMessage,
};
use serde_json::json;
use mediation::storage::{get_persistence, MediatorPersistence};

use self::transports::AriesTransport;
use crate::utils::{prelude::*, structs::VeriKey};
Expand Down
2 changes: 1 addition & 1 deletion agents/rust/mediator/src/http_routes/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ use std::collections::VecDeque;

use aries_vcx_core::wallet::base_wallet::BaseWallet;
use axum::routing::post;
use mediation::storage::MediatorPersistence;
use messages::msg_fields::protocols::out_of_band::invitation::Invitation as OOBInvitation;
use serde_json::json;
use mediation::storage::MediatorPersistence;

use super::*;
use crate::aries_agent::transports::AriesReqwest;
Expand Down
6 changes: 3 additions & 3 deletions agents/rust/mediator/src/http_routes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ use axum::{
Json, Router,
};
use log::info;
use messages::{msg_fields::protocols::connection::Connection, AriesMessage};
use serde::{Deserialize, Serialize};
use serde_json::Value;
use mediation::{
didcomm_types::{
mediator_coord_structs::{MediateGrantData, MediatorCoordMsgEnum},
PickupMsgEnum,
},
storage::MediatorPersistence,
};
use messages::{msg_fields::protocols::connection::Connection, AriesMessage};
use serde::{Deserialize, Serialize};
use serde_json::Value;

use crate::{aries_agent::Agent, utils::string_from_std_error};
type ArcAgent<T, P> = Arc<Agent<T, P>>;
Expand Down
2 changes: 1 addition & 1 deletion agents/rust/mediator/src/tui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ use cursive::{
};
use futures::executor::block_on;
use log::info;
use messages::msg_fields::protocols::out_of_band::invitation::Invitation as OOBInvitation;
use mediation::storage::MediatorPersistence;
use messages::msg_fields::protocols::out_of_band::invitation::Invitation as OOBInvitation;

use crate::{aries_agent::Agent, http_routes::client::handle_register};

Expand Down
14 changes: 7 additions & 7 deletions agents/rust/mediator/tests/mediator-coord.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ use std::collections::VecDeque;
use aries_vcx::protocols::connection::invitee::{states::completed::Completed, InviteeConnection};
use aries_vcx_core::wallet::base_wallet::BaseWallet;
use common::{prelude::*, test_setup::OneTimeInit};
use mediation::{
didcomm_types::mediator_coord_structs::{
KeylistData, KeylistQueryData, KeylistUpdateItem, KeylistUpdateItemAction,
KeylistUpdateRequestData, MediatorCoordMsgEnum,
},
storage::MediatorPersistence,
};
use mediator::{
aries_agent::{
transports::{AriesReqwest, AriesTransport},
Expand All @@ -13,13 +20,6 @@ use mediator::{
};
use messages::msg_fields::protocols::out_of_band::invitation::Invitation as OOBInvitation;
use reqwest::header::ACCEPT;
use mediation::{
didcomm_types::mediator_coord_structs::{
KeylistData, KeylistQueryData, KeylistUpdateItem, KeylistUpdateItemAction,
KeylistUpdateRequestData, MediatorCoordMsgEnum,
},
storage::MediatorPersistence,
};

const ENDPOINT_ROOT: &str = "http://localhost:8005";

Expand Down

0 comments on commit 45842ec

Please sign in to comment.