Update Public Suffix List to 46ac7a8060f29bd6e9ad047c8961f54a634f042cb66381894f39f442e077afd6 #871
GitHub Actions / clippy
succeeded
Oct 7, 2023 in 0s
clippy
3 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 3 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.75.0-nightly (cae0791da 2023-10-05)
- cargo 1.75.0-nightly (794d0a825 2023-10-03)
- clippy 0.1.74 (cae0791 2023-10-05)
Annotations
Check warning on line 14 in src/util/io.rs
github-actions / clippy
this argument is a mutable reference, but not used mutably
warning: this argument is a mutable reference, but not used mutably
--> src/util/io.rs:14:56
|
14 | pub(crate) async fn read_async<R>(reader: &mut R, buf: &mut [u8]) -> Result<usize>
| ^^^^^^^^^ help: consider changing to: `&[u8]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
= note: `#[warn(clippy::needless_pass_by_ref_mut)]` implied by `#[warn(clippy::all)]`
Check warning on line 23 in src/config/redirect.rs
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
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)]`
Loading