Skip to content

Mock feature

Mock feature #84

GitHub Actions / clippy succeeded Jan 31, 2025 in 0s

clippy

8 warnings

Details

Results

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

Versions

  • rustc 1.84.0 (9fc6b4312 2025-01-07)
  • cargo 1.84.0 (66221abde 2024-11-19)
  • clippy 0.1.84 (9fc6b43126 2025-01-07)

Annotations

Check warning on line 146 in src/payload/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

variable does not need to be mutable

warning: variable does not need to be mutable
   --> src/payload/mod.rs:146:19
    |
146 |     pub fn unwrap(mut self, payload_key: &PayloadKey) -> Result<Self> {
    |                   ----^^^^
    |                   |
    |                   help: remove this `mut`

Check warning on line 146 in src/payload/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `payload_key`

warning: unused variable: `payload_key`
   --> src/payload/mod.rs:146:29
    |
146 |     pub fn unwrap(mut self, payload_key: &PayloadKey) -> Result<Self> {
    |                             ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload_key`

Check warning on line 122 in src/payload/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

variable does not need to be mutable

warning: variable does not need to be mutable
   --> src/payload/mod.rs:122:29
    |
122 |     fn add_encryption_layer(mut self, payload_enc_key: &PayloadKey) -> Result<Self> {
    |                             ----^^^^
    |                             |
    |                             help: remove this `mut`
    |
    = note: `#[warn(unused_mut)]` on by default

Check warning on line 122 in src/payload/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `payload_enc_key`

warning: unused variable: `payload_enc_key`
   --> src/payload/mod.rs:122:39
    |
122 |     fn add_encryption_layer(mut self, payload_enc_key: &PayloadKey) -> Result<Self> {
    |                                       ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload_enc_key`
    |
    = note: `#[warn(unused_variables)]` on by default

Check warning on line 21 in src/payload/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `lioness::Lioness`

warning: unused import: `lioness::Lioness`
  --> src/payload/mod.rs:21:5
   |
21 | use lioness::Lioness;
   |     ^^^^^^^^^^^^^^^^

Check warning on line 20 in src/payload/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `chacha::ChaCha`

warning: unused import: `chacha::ChaCha`
  --> src/payload/mod.rs:20:5
   |
20 | use chacha::ChaCha; // we might want to swap this one with a different implementation
   |     ^^^^^^^^^^^^^^

Check warning on line 19 in src/payload/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `blake2::VarBlake2b`

warning: unused import: `blake2::VarBlake2b`
  --> src/payload/mod.rs:19:5
   |
19 | use blake2::VarBlake2b;
   |     ^^^^^^^^^^^^^^^^^^

Check warning on line 18 in src/payload/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `arrayref::array_ref`

warning: unused import: `arrayref::array_ref`
  --> src/payload/mod.rs:18:5
   |
18 | use arrayref::array_ref;
   |     ^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default