Skip to content

Update Public Suffix List to 46ac7a8060f29bd6e9ad047c8961f54a634f042cb66381894f39f442e077afd6 #873

Update Public Suffix List to 46ac7a8060f29bd6e9ad047c8961f54a634f042cb66381894f39f442e077afd6

Update Public Suffix List to 46ac7a8060f29bd6e9ad047c8961f54a634f042cb66381894f39f442e077afd6 #873

GitHub Actions / clippy succeeded Dec 7, 2023 in 1s

clippy

2 warnings

Details

Results

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

Versions

  • rustc 1.76.0-nightly (e9013ac0e 2023-12-05)
  • cargo 1.76.0-nightly (623b78849 2023-12-02)
  • clippy 0.1.76 (e9013ac 2023-12-05)

Annotations

Check warning on line 23 in src/config/redirect.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this `impl` can be derived

warning: this `impl` can be derived
  --> src/config/redirect.rs:19:1
   |
19 | / impl Default for RedirectPolicy {
20 | |     fn default() -> Self {
21 | |         RedirectPolicy::None
22 | |     }
23 | | }
   | |_^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
   = note: `#[warn(clippy::derivable_impls)]` implied by `#[warn(clippy::all)]`
   = help: remove the manual implementation...
help: ...and instead derive it...
   |
5  + #[derive(Default)]
6  | pub enum RedirectPolicy {
   |
help: ...and mark the default variant
   |
10 ~     #[default]
11 ~     None,
   |

Check warning on line 170 in src/handler.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/handler.rs:170:42
    |
170 |         easy.get_mut().span.record("id", &id);
    |                                          ^^^ help: change this to: `id`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
note: the lint level is defined here
   --> src/lib.rs:240:5
    |
240 |     clippy::all
    |     ^^^^^^^^^^^
    = note: `#[warn(clippy::needless_borrows_for_generic_args)]` implied by `#[warn(clippy::all)]`