Skip to content

Use builder for mpesaexpress request #38

Use builder for mpesaexpress request

Use builder for mpesaexpress request #38

GitHub Actions / clippy failed Nov 9, 2023 in 0s

clippy

2 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 2
Warning 0
Note 0
Help 0

Versions

  • rustc 1.73.0 (cc66ad468 2023-10-03)
  • cargo 1.73.0 (9c4383fb5 2023-08-26)
  • clippy 0.1.73 (cc66ad4 2023-10-03)

Annotations

Check failure on line 459 in src/client.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this expression creates a reference which is immediately dereferenced by the compiler

error: this expression creates a reference which is immediately dereferenced by the compiler
   --> src/client.rs:459:31
    |
459 |         MpesaExpress::builder(&self)
    |                               ^^^^^ help: change this to: `self`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
    = note: `-D clippy::needless-borrow` implied by `-D warnings`

Check failure on line 11 in src/services/express_request.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

static `DEFAULT_PASSKEY` is never used

error: static `DEFAULT_PASSKEY` is never used
  --> src/services/express_request.rs:11:8
   |
11 | static DEFAULT_PASSKEY: &str = "bfb279f9aa9bdbcf158e97dd71a467cd2e0c893059b10f78e6b72ada1ed2c919";
   |        ^^^^^^^^^^^^^^^
   |
   = note: `-D dead-code` implied by `-D warnings`