Skip to content

Commit

Permalink
fix: Fix clippy and rustfmt ci failures
Browse files Browse the repository at this point in the history
  • Loading branch information
c12i committed Jan 28, 2024
1 parent 10a2097 commit 3c3b93b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ impl Mpesa {

#[cfg(feature = "account_balance")]
#[doc = include_str!("../docs/client/account_balance.md")]
pub fn account_balance<'a>(&'a self) -> AccountBalanceBuilder {
pub fn account_balance(&self) -> AccountBalanceBuilder {
AccountBalance::builder(self)
}

Expand Down
7 changes: 5 additions & 2 deletions tests/mpesa-rust/account_balance_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,12 @@ async fn account_balance_using_struct_initialization() {
queue_time_out_url: "https://testdomain.com/err".try_into().unwrap(),
remarks: "None",
result_url: "https://testdomain.com/ok".try_into().unwrap(),
security_credential: client.gen_security_credentials().unwrap()
security_credential: client.gen_security_credentials().unwrap(),
};
let response = AccountBalance::from_request(&client, request).send().await.unwrap();
let response = AccountBalance::from_request(&client, request)
.send()
.await
.unwrap();
assert_eq!(response.originator_conversation_id, "29464-48063588-1");
assert_eq!(response.conversation_id, "AG_20230206_201056794190723278ff");
assert_eq!(
Expand Down

0 comments on commit 3c3b93b

Please sign in to comment.