Skip to content

Update dependencies #1490

Update dependencies

Update dependencies #1490

GitHub Actions / clippy succeeded Feb 12, 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.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 18 in src/router.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this match arm has an identical body to another arm

warning: this match arm has an identical body to another arm
  --> src/router.rs:18:9
   |
18 |         (&Method::GET, "/callback") => handlers::rewrite_to_post::rewrite_to_post(ctx).await,
   |         ---------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |         |
   |         help: try merging the arm patterns: `(&Method::GET, "/callback") | (&Method::GET, "/confirm")`
   |
   = help: or try changing either arm body
note: other arm here
  --> src/router.rs:24:9
   |
24 |         (&Method::GET, "/confirm") => handlers::rewrite_to_post::rewrite_to_post(ctx).await,
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_same_arms
   = note: `#[warn(clippy::match_same_arms)]` implied by `#[warn(clippy::pedantic)]`

Check warning on line 36 in src/handlers/pages.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

binding to `_` prefixed variable with no side-effect

warning: binding to `_` prefixed variable with no side-effect
  --> src/handlers/pages.rs:36:22
   |
36 | pub async fn metrics(_ctx: &mut Context) -> HandlerResult {
   |                      ^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

Check warning on line 22 in src/handlers/pages.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

binding to `_` prefixed variable with no side-effect

warning: binding to `_` prefixed variable with no side-effect
  --> src/handlers/pages.rs:22:22
   |
22 | pub async fn version(_ctx: &mut Context) -> HandlerResult {
   |                      ^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

Check warning on line 12 in src/handlers/pages.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

binding to `_` prefixed variable with no side-effect

warning: binding to `_` prefixed variable with no side-effect
  --> src/handlers/pages.rs:12:20
   |
12 | pub async fn index(_ctx: &mut Context) -> HandlerResult {
   |                    ^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding
   = note: `#[warn(clippy::no_effect_underscore_binding)]` implied by `#[warn(clippy::pedantic)]`

Check warning on line 93 in src/config/toml.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

all fields have the same postfix: `ttl`

warning: all fields have the same postfix: `ttl`
  --> src/config/toml.rs:89:1
   |
89 | / struct TomlHeadersTable {
90 | |     static_ttl: Option<u64>,
91 | |     discovery_ttl: Option<u64>,
92 | |     keys_ttl: Option<u64>,
93 | | }
   | |_^
   |
   = help: remove the postfixes
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#struct_field_names
note: the lint level is defined here
  --> src/main.rs:2:9
   |
2  | #![warn(clippy::pedantic)]
   |         ^^^^^^^^^^^^^^^^
   = note: `#[warn(clippy::struct_field_names)]` implied by `#[warn(clippy::pedantic)]`