Skip to content

ci: Add clippy to CI #59

ci: Add clippy to CI

ci: Add clippy to CI #59

Triggered via pull request October 21, 2024 15:18
Status Success
Total duration 1m 42s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

42 warnings
src/proxy/proxy.rs#L89
this `if` statement can be collapsed
src/proxy/proxy.rs#L478
this `if` statement can be collapsed
src/tools/cacheable.rs#L92
this `if` statement can be collapsed
src/config/mod.rs#L1
module has the same name as its containing module
src/proxy/compute/mod.rs#L1
module has the same name as its containing module
src/proxy/compute/compute.rs#L97
called `unwrap` on `data_collection_events` after checking its variant with `is_some`
src/proxy/compute/compute.rs#L116
doc list item without indentation
src/proxy/compute/data_collection/mod.rs#L2
module has the same name as its containing module
src/proxy/compute/data_collection/data_collection.rs#L414
`to_string` applied to a type that implements `Display` in `format!` args
src/proxy/compute/data_collection/payload.rs#L32
this expression creates a reference which is immediately dereferenced by the compiler
src/proxy/compute/data_collection/payload.rs#L35
this expression creates a reference which is immediately dereferenced by the compiler
src/proxy/compute/data_collection/payload.rs#L197
you seem to want to iterate on a map's values
src/proxy/compute/html.rs#L301
this expression creates a reference which is immediately dereferenced by the compiler
src/proxy/context/proxy.rs#L121
redundant closure
src/proxy/context/proxy.rs#L158
redundant closure
src/proxy/controller/mod.rs#L1
module has the same name as its containing module
src/proxy/controller/controller.rs#L32
this expression creates a reference which is immediately dereferenced by the compiler
src/proxy/controller/controller.rs#L32
this expression creates a reference which is immediately dereferenced by the compiler
src/proxy/controller/controller.rs#L36
length comparison to zero
src/proxy/controller/controller.rs#L63
unneeded late initialization
src/proxy/controller/controller.rs#L87
length comparison to zero
src/proxy/controller/controller.rs#L96
length comparison to zero
src/proxy/controller/controller.rs#L149
called `unwrap` on `inlined_sdk` after checking its variant with `is_ok`
src/proxy/mod.rs#L4
module has the same name as its containing module
src/proxy/proxy.rs#L45
use of `unwrap_or` to construct default value
src/proxy/proxy.rs#L233
this let-binding has unit value
src/proxy/proxy.rs#L234
the function `compute::html_handler` doesn't need a mutable reference
src/proxy/proxy.rs#L248
this expression creates a reference which is immediately dereferenced by the compiler
src/tools/crypto.rs#L30
useless conversion to the same type: `&str`
src/tools/crypto.rs#L61
useless conversion to the same type: `&str`
src/tools/crypto.rs#L66
useless conversion to the same type: `&str`
src/tools/crypto.rs#L72
useless conversion to the same type: `&str`
src/tools/edgee_cookie.rs#L129
this expression creates a reference which is immediately dereferenced by the compiler
src/tools/edgee_cookie.rs#L149
manual implementation of an assign operation
src/tools/edgee_cookie.rs#L229
called `unwrap` on `domain` after checking its variant with `is_some`
src/tools/edgee_cookie.rs#L257
this match expression is unnecessary
src/tools/path.rs#L171
called `unwrap` on `index` after checking its variant with `is_none`
src/tools/path.rs#L216
called `unwrap` on `index` after checking its variant with `is_none`
src/tools/path.rs#L393
redundant pattern matching, consider using `is_some()`
src/tools/path.rs#L407
redundant pattern matching, consider using `is_some()`
src/tools/real_ip.rs#L24
useless use of `vec!`