Skip to content

ops: ci action to lint redoc #1

ops: ci action to lint redoc

ops: ci action to lint redoc #1

GitHub Actions / clippy succeeded Mar 5, 2024 in 0s

clippy

4 warnings

Details

Results

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

Versions

  • rustc 1.76.0 (07dca489a 2024-02-04)
  • cargo 1.76.0 (c84b36747 2024-01-18)
  • clippy 0.1.76 (07dca48 2024-02-04)

Annotations

Check warning on line 74 in src/operators/parse_operator.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

casting to the same type is unnecessary (`usize` -> `usize`)

warning: casting to the same type is unnecessary (`usize` -> `usize`)
  --> src/operators/parse_operator.rs:74:33
   |
74 |             target_group_size + cmp::min(remainder as usize, remainder_per_group as usize) as usize;
   |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `cmp::min(remainder as usize, remainder_per_group as usize)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast

Check warning on line 40 in src/operators/parse_operator.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

casting to the same type is unnecessary (`usize` -> `usize`)

warning: casting to the same type is unnecessary (`usize` -> `usize`)
  --> src/operators/parse_operator.rs:40:28
   |
40 |             chunk.drain(0..amt_to_take as usize);
   |                            ^^^^^^^^^^^^^^^^^^^^ help: try: `amt_to_take`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
   = note: `#[warn(clippy::unnecessary_cast)]` on by default

Check warning on line 20 in src/handlers/stripe_handler.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `utoipa::ToSchema`

warning: unused import: `utoipa::ToSchema`
  --> src/handlers/stripe_handler.rs:20:5
   |
20 | use utoipa::ToSchema;
   |     ^^^^^^^^^^^^^^^^

Check warning on line 9 in src/handlers/event_handler.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `utoipa::ToSchema`

warning: unused import: `utoipa::ToSchema`
 --> src/handlers/event_handler.rs:9:5
  |
9 | use utoipa::ToSchema;
  |     ^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default