Skip to content

Commit

Permalink
cargo clippy --fix --test
Browse files Browse the repository at this point in the history
Signed-off-by: Naian <[email protected]>
  • Loading branch information
nain-F49FF806 committed Oct 26, 2023
1 parent 4be16b4 commit 8eb0525
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions agents/rust/mediator/tests/mediator-routing-forward.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,16 @@ async fn get_mediator_grant_data(
// send message and get response
let response_message = send_message_and_pop_response_message(
&message_bytes,
&agent,
agent,
agent_aries_transport,
&agent_verikey,
&mediator_diddoc,
agent_verikey,
mediator_diddoc,
)
.await
.unwrap();
// extract routing parameters
let grant_data = if let MediatorCoordMsgEnum::MediateGrant(grant_data) =

if let MediatorCoordMsgEnum::MediateGrant(grant_data) =
serde_json::from_str(&response_message).unwrap()
{
info!("Grant Data {:?}", grant_data);
Expand All @@ -77,8 +78,7 @@ async fn get_mediator_grant_data(
"Should get response that is of type Mediator Grant. Found {:?}",
response_message
)
};
grant_data
}
}

#[tokio::test]
Expand Down

0 comments on commit 8eb0525

Please sign in to comment.