Skip to content
GitHub Actions / clippy succeeded May 3, 2024 in 0s

clippy

5 warnings

Details

Results

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

Versions

  • rustc 1.77.2 (25ef9e3d8 2024-04-09)
  • cargo 1.77.2 (e52e36006 2024-03-26)
  • clippy 0.1.77 (25ef9e3 2024-04-09)

Annotations

Check warning on line 160 in src/redis/barrier.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
   --> src/redis/barrier.rs:160:18
    |
160 |             .arg(&num)
    |                  ^^^^ help: change this to: `num`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args

Check warning on line 159 in src/redis/barrier.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
   --> src/redis/barrier.rs:159:18
    |
159 |             .arg(&key)
    |                  ^^^^ help: change this to: `key`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
    = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default

Check warning on line 78 in src/redis/rwlock/lock.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

field `conn` is never read

warning: field `conn` is never read
  --> src/redis/rwlock/lock.rs:78:16
   |
76 | pub struct RwLock<T> {
   |            ------ field in this struct
77 |     pub(crate) data: Generic<T>,
78 |     pub(crate) conn: Option<redis::Connection>,
   |                ^^^^

Check warning on line 150 in src/redis/barrier.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

enum `BarrierError` is never used

warning: enum `BarrierError` is never used
   --> src/redis/barrier.rs:150:6
    |
150 | enum BarrierError {
    |      ^^^^^^^^^^^^
    |
    = note: `#[warn(dead_code)]` on by default

Check warning on line 165 in src/redis/barrier.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

redundant field names in struct initialization

warning: redundant field names in struct initialization
   --> src/redis/barrier.rs:165:13
    |
165 |             uuid: uuid,
    |             ^^^^^^^^^^ help: replace it with: `uuid`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
    = note: `#[warn(clippy::redundant_field_names)]` on by default