Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
c12i committed Nov 20, 2023
1 parent 03fd8e5 commit f56a0d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,12 @@ impl<'mpesa, Env: ApiEnvironment> Mpesa<Env> {
/// If in development, a default initiator password from the test credentials is already pre-set
///
/// # Example
///
/// ```rust
/// use mpesa::{Mpesa, Environment};
///
/// fn main() {
/// #[tokio::main]
/// async fn main() {
/// dotenv::dotenv().ok();
///
/// let client = Mpesa::new(
Expand All @@ -114,6 +116,7 @@ impl<'mpesa, Env: ApiEnvironment> Mpesa<Env> {
/// Environment::Sandbox,
/// );
/// client.set_initiator_password("your_initiator_password");
/// assert!(client.is_connected().await);
/// }
/// ```
pub fn set_initiator_password<S: Into<String>>(&self, initiator_password: S) {
Expand Down

0 comments on commit f56a0d7

Please sign in to comment.